aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-02-01 23:32:09 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-02-01 23:32:09 -0500
commit406496ca3371b7f50aee141fa37c52e86d96783f (patch)
tree817587a21d0f0f12b871e5ff04955d5cd553ffb0 /src/analyze.cpp
parent13b36d458f6ba45fdda1c1510e056a7012fb3fff (diff)
downloadzig-406496ca3371b7f50aee141fa37c52e86d96783f.tar.gz
zig-406496ca3371b7f50aee141fa37c52e86d96783f.zip
*WIP* error sets - allow peer type resolution to create new error set
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp
index f69b131626..36aac9b29e 100644
--- a/src/analyze.cpp
+++ b/src/analyze.cpp
@@ -1277,7 +1277,7 @@ static bool type_allowed_in_extern(CodeGen *g, TypeTableEntry *type_entry) {
TypeTableEntry *get_auto_err_set_type(CodeGen *g, FnTableEntry *fn_entry) {
TypeTableEntry *err_set_type = new_type_table_entry(TypeTableEntryIdErrorSet);
buf_resize(&err_set_type->name, 0);
- buf_appendf(&err_set_type->name, "%s.errors", buf_ptr(&fn_entry->symbol_name));
+ buf_appendf(&err_set_type->name, "@typeOf(%s).ReturnType.ErrorSet", buf_ptr(&fn_entry->symbol_name));
err_set_type->is_copyable = true;
err_set_type->type_ref = g->builtin_types.entry_global_error_set->type_ref;
err_set_type->di_type = g->builtin_types.entry_global_error_set->di_type;