Remove var and const keywords; Fix default parameter syntax

This commit is contained in:
Ginger Bill
2017-06-28 23:55:40 +01:00
parent 94afcec757
commit fd81c06c35
5 changed files with 29 additions and 62 deletions
+2 -6
View File
@@ -1654,12 +1654,8 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) {
for_array(i, fb->decls) {
AstNode *decl = fb->decls[i];
if (decl->kind == AstNode_GenDecl) {
switch (decl->GenDecl.token.kind) {
case Token_var:
check_stmt(c, decl, flags);
break;
}
if (decl->kind == AstNode_ValueDecl && decl->ValueDecl.is_mutable) {
check_stmt(c, decl, flags);
}
}