diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-09-09 22:46:08 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-09-09 22:46:08 -0400 |
| commit | bc0a60c7a6e772a40fc19becd46f89f34f502759 (patch) | |
| tree | ea48f9759ed2cb10146c441ef45db289729befe8 /src/analyze.cpp | |
| parent | 5fdf3fa1954f8f8f2a4558723078c0b1400b8574 (diff) | |
| download | zig-bc0a60c7a6e772a40fc19becd46f89f34f502759.tar.gz zig-bc0a60c7a6e772a40fc19becd46f89f34f502759.zip | |
more compile errors for non-const variables of things
closes #456
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
