From bc0a60c7a6e772a40fc19becd46f89f34f502759 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 9 Sep 2017 22:46:08 -0400 Subject: more compile errors for non-const variables of things closes #456 --- src/analyze.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index fe705dfce8..eaeb3fa553 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -2510,6 +2510,7 @@ static void resolve_decl_var(CodeGen *g, TldVar *tld_var) { IrInstruction *init_value = nullptr; + // TODO more validation for types that can't be used for export/extern variables TypeTableEntry *implicit_type = nullptr; if (explicit_type && explicit_type->id == TypeTableEntryIdInvalid) { implicit_type = explicit_type; -- cgit v1.2.3