From d324b1befa6c7f0fd5d18ffe45a98d104a62d8a0 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 8 Sep 2016 00:24:48 -0400 Subject: ability to infer parameter types --- src/eval.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/eval.cpp') diff --git a/src/eval.cpp b/src/eval.cpp index b3b8b81b35..1e71fd262b 100644 --- a/src/eval.cpp +++ b/src/eval.cpp @@ -55,9 +55,11 @@ bool const_values_equal(ConstExprValue *a, ConstExprValue *b, TypeTableEntry *ty zig_panic("TODO"); case TypeTableEntryIdNamespace: zig_panic("TODO"); + zig_panic("TODO"); case TypeTableEntryIdGenericFn: case TypeTableEntryIdInvalid: case TypeTableEntryIdUnreachable: + case TypeTableEntryIdVar: zig_unreachable(); } zig_unreachable(); @@ -1301,6 +1303,7 @@ static bool eval_expr(EvalFn *ef, AstNode *node, ConstExprValue *out) { case NodeTypeArrayType: case NodeTypeErrorType: case NodeTypeTypeLiteral: + case NodeTypeVarLiteral: zig_panic("TODO"); case NodeTypeRoot: case NodeTypeFnProto: -- cgit v1.2.3