aboutsummaryrefslogtreecommitdiffstats
path: root/src/depoly.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/depoly.cpp')
-rw-r--r--src/depoly.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/depoly.cpp b/src/depoly.cpp
index cb698df..fa71ba0 100644
--- a/src/depoly.cpp
+++ b/src/depoly.cpp
@@ -47,6 +47,9 @@ is_concrete(const AST* type)
static const AST*
depoly_def_type(CEnv& cenv, Code& code, const ATuple* def) throw()
{
+ if (!def->rrst()) {
+ return def; // Forward declaration
+ }
const ASymbol* name = def->frst()->to_symbol();
if (name) {
cenv.tenv.def(name, def->frrst());