diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-09-09 08:58:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-09-10 20:53:57 -0400 |
| commit | 9e92dbdd0889a68e32cde85c1a07767200a9ad7e (patch) | |
| tree | 3011d68e950e0e1305c7bc8cc65d9b0be2b38647 /src/analyze.cpp | |
| parent | 100990b052be249c23743140d19ced37d463b51d (diff) | |
| download | zig-9e92dbdd0889a68e32cde85c1a07767200a9ad7e.tar.gz zig-9e92dbdd0889a68e32cde85c1a07767200a9ad7e.zip | |
std: use parameter type inference on min and max functions
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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"); } |
