From 000d4d306496b549018744764a3214771f32a02c Mon Sep 17 00:00:00 2001 From: Enzo Date: Sat, 1 May 2021 20:21:44 +0200 Subject: [PATCH] checker: cleanup typeof (#9954) --- vlib/v/checker/checker.v | 4 ---- 1 file changed, 4 deletions(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index ae80e92d5a..ebfc05a317 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -1979,10 +1979,6 @@ pub fn (mut c Checker) fn_call(mut call_expr ast.CallExpr) ast.Type { if fn_name == 'main' { c.error('the `main` function cannot be called in the program', call_expr.pos) } - if fn_name == 'typeof' { - // TODO: impl typeof properly (probably not going to be a fn call) - return ast.string_type - } mut has_generic := false // foo() instead of foo() mut concrete_types := []ast.Type{} for concrete_type in call_expr.concrete_types {