Diverging procedures proc() -> ! (no return)

This commit is contained in:
gingerBill
2018-09-08 12:16:03 +01:00
parent 3cd6ae311d
commit 3825eab989
8 changed files with 37 additions and 6 deletions
+1
View File
@@ -1951,6 +1951,7 @@ bool check_procedure_type(CheckerContext *ctx, Type *type, Ast *proc_type_node,
type->Proc.calling_convention = cc;
type->Proc.is_polymorphic = pt->generic;
type->Proc.specialization_count = specialization_count;
type->Proc.no_return = pt->no_return;
if (param_count > 0) {
Entity *end = params->Tuple.variables[param_count-1];