summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/gram.y b/parse/gram.y
index 8e8e51b..9b8f36e 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -439,6 +439,7 @@ declcore: name {$$ = mkdecl($1->loc, $1, mktyvar($1->loc));}
typedeclcore
: name Tcolon type {$$ = mkdecl($1->loc, $1, $3);}
+ | Tcolon type {$$ = mkpseudodecl($1->loc, $2);}
;
name : Tident {$$ = mkname($1->loc, $1->id);}