Functions with infered error set can now return literals

fixes #852
This commit is contained in:
Jimmi Holst Christensen
2018-04-28 16:27:31 +02:00
parent 3178528335
commit 2fc34eaa58
3 changed files with 58 additions and 18 deletions

View File

@@ -6131,4 +6131,3 @@ bool type_can_fail(TypeTableEntry *type_entry) {
bool fn_type_can_fail(FnTypeId *fn_type_id) {
return type_can_fail(fn_type_id->return_type) || fn_type_id->cc == CallingConventionAsync;
}