v2: fix typo in checker.v (#20064)

This commit is contained in:
Ikko Eltociear Ashimine 2023-12-02 17:40:53 +09:00 committed by GitHub
parent a017b53450
commit c943d9a815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1765,7 +1765,7 @@ fn (mut c Checker) call_expr(expr ast.CallExpr) Type {
c.env.generic_types[lhs_expr.name()] << generic_type_map
}
} else if lhs_expr is ast.GenericArgs {
c.error_with_pos('cannot call non generic fuction with generic argument list',
c.error_with_pos('cannot call non generic function with generic argument list',
expr.pos)
}