From 9e92dbdd0889a68e32cde85c1a07767200a9ad7e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 9 Sep 2016 08:58:39 -0400 Subject: std: use parameter type inference on min and max functions --- src/analyze.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index ad0dd7431e..298842c345 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -988,6 +988,7 @@ static TypeTableEntry *analyze_fn_proto_type(CodeGen *g, ImportTableEntry *impor case TypeTableEntryIdNullLit: case TypeTableEntryIdNamespace: case TypeTableEntryIdGenericFn: + case TypeTableEntryIdVar: fn_proto->skip = true; add_node_error(g, fn_proto->return_type, buf_sprintf("return type '%s' not allowed", buf_ptr(&fn_type_id.return_type->name))); @@ -1009,8 +1010,6 @@ static TypeTableEntry *analyze_fn_proto_type(CodeGen *g, ImportTableEntry *impor case TypeTableEntryIdFn: case TypeTableEntryIdTypeDecl: break; - case TypeTableEntryIdVar: - zig_panic("TODO var return type"); } -- cgit v1.2.3