mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-10 06:53:03 +00:00
Disable var and const declarations
This commit is contained in:
@@ -2219,6 +2219,11 @@ Type *check_type(Checker *c, AstNode *e, Type *named_type) {
|
||||
}
|
||||
}
|
||||
|
||||
if (is_type_gen_proc(type)) {
|
||||
error(e, "Invalid use of polymorphic procedure type");
|
||||
type = t_invalid;
|
||||
}
|
||||
|
||||
if (is_type_typed(type)) {
|
||||
add_type_and_value(&c->info, e, Addressing_Type, type, empty_exact_value);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user