Skip to content

Commit 000d4d3

Browse files
authored
checker: cleanup typeof (#9954)
1 parent ef63491 commit 000d4d3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

vlib/v/checker/checker.v

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,10 +1979,6 @@ pub fn (mut c Checker) fn_call(mut call_expr ast.CallExpr) ast.Type {
19791979
if fn_name == 'main' {
19801980
c.error('the `main` function cannot be called in the program', call_expr.pos)
19811981
}
1982-
if fn_name == 'typeof' {
1983-
// TODO: impl typeof properly (probably not going to be a fn call)
1984-
return ast.string_type
1985-
}
19861982
mut has_generic := false // foo<T>() instead of foo<int>()
19871983
mut concrete_types := []ast.Type{}
19881984
for concrete_type in call_expr.concrete_types {

0 commit comments

Comments
 (0)