Skip to content

Commit 9a319fd

Browse files
committed
Reject : namespace declarations until we implement those, closes #64
1 parent 4ce56a8 commit 9a319fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/parse.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2982,6 +2982,10 @@ class parser
29822982

29832983
// Or just a type, declaring a non-pointer object
29842984
else if (auto t = type_id()) {
2985+
if (auto id = t->get_token(); id && *id == "namespace") {
2986+
error("alpha limitation: namespaces are not yet supported", false);
2987+
return {};
2988+
}
29852989
n->type = std::move(t);
29862990
assert (n->type.index() == declaration_node::object);
29872991
}

0 commit comments

Comments
 (0)