commit e4fe531e7e8c0d422035872f71ff470bc87d3c2b
parent 0e12d1e84cf7f0be0a9b94ee97352ca4d72d9219
Author: Eyal Sawady <ecs@d2evs.net>
Date: Mon, 19 Apr 2021 20:07:56 -0400
parse: disallow null as a primitive type
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/parse.c b/src/parse.c
@@ -381,9 +381,6 @@ parse_primitive_type(struct lexer *lexer)
case T_VOID:
type->storage = STORAGE_VOID;
break;
- case T_NULL:
- type->storage = STORAGE_NULL;
- break;
default:
assert(0);
}
@@ -623,7 +620,6 @@ parse_type(struct lexer *lexer)
case T_F64:
case T_BOOL:
case T_VOID:
- case T_NULL:
unlex(lexer, &tok);
type = parse_primitive_type(lexer);
break;