diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-12-04 00:56:27 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-12-04 00:56:27 -0500 |
| commit | 05d9f07541c8c5b788687046ad313c6cff211476 (patch) | |
| tree | 3d062505eca9d3cb18337066673a90bba70ca3f2 /src/ir.cpp | |
| parent | fce435db269162774106ce7e6ddf70871d5eeb49 (diff) | |
| download | zig-05d9f07541c8c5b788687046ad313c6cff211476.tar.gz zig-05d9f07541c8c5b788687046ad313c6cff211476.zip | |
more tests for unions
See #618
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index d784974ae8..facd7087f0 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -12977,7 +12977,7 @@ static TypeTableEntry *ir_analyze_instruction_switch_target(IrAnalyze *ira, ErrorMsg *msg = ir_add_error(ira, target_value_ptr, buf_sprintf("switch on union which has no attached enum")); add_error_note(ira->codegen, msg, decl_node, - buf_sprintf("union declared here")); + buf_sprintf("consider 'union(enum)' here")); return ira->codegen->builtin_types.entry_invalid; } TypeTableEntry *tag_type = target_type->data.unionation.tag_type; |
