mirror of
https://github.com/ziglang/zig.git
synced 2026-02-02 04:33:37 +00:00
compile error instead of abort for unimplemented @typeInfo
of `@Frame(func)`. Closes #3995
This commit is contained in:
parent
702398dd0e
commit
3170ead9eb
@ -24564,7 +24564,9 @@ static Error ir_make_type_info_value(IrAnalyze *ira, IrInst* source_instr, ZigTy
|
||||
break;
|
||||
}
|
||||
case ZigTypeIdFnFrame:
|
||||
zig_panic("TODO @typeInfo for async function frames");
|
||||
ir_add_error(ira, source_instr,
|
||||
buf_sprintf("compiler bug: TODO @typeInfo for async function frames. https://github.com/ziglang/zig/issues/3066"));
|
||||
return ErrorSemanticAnalyzeFail;
|
||||
}
|
||||
|
||||
assert(result != nullptr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user