From 31aacd5bf435224c7d8f9b19359175d3e6d25660 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Fri, 27 Jan 2017 23:02:55 +0000 Subject: Fix parsing for block/if expression within if/for/etc. statements --- src/check_expr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/check_expr.c') diff --git a/src/check_expr.c b/src/check_expr.c index f6037beee..18c75ac9d 100644 --- a/src/check_expr.c +++ b/src/check_expr.c @@ -203,6 +203,11 @@ i64 check_distance_between_types(Checker *c, Operand *operand, Type *type) { } } + // if (is_type_proc(dst)) { + // if (are_types_identical(src, dst)) { + // return 1; + // } + // } if (is_type_any(dst)) { // NOTE(bill): Anything can cast to `Any` -- cgit v1.2.3