We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef63491 commit 000d4d3Copy full SHA for 000d4d3
vlib/v/checker/checker.v
@@ -1979,10 +1979,6 @@ pub fn (mut c Checker) fn_call(mut call_expr ast.CallExpr) ast.Type {
1979
if fn_name == 'main' {
1980
c.error('the `main` function cannot be called in the program', call_expr.pos)
1981
}
1982
- if fn_name == 'typeof' {
1983
- // TODO: impl typeof properly (probably not going to be a fn call)
1984
- return ast.string_type
1985
- }
1986
mut has_generic := false // foo<T>() instead of foo<int>()
1987
mut concrete_types := []ast.Type{}
1988
for concrete_type in call_expr.concrete_types {
0 commit comments