Improved type system checks
This commit is contained in:
3
tests/errors/TypeMismatch2.q
Normal file
3
tests/errors/TypeMismatch2.q
Normal file
@ -0,0 +1,3 @@
|
||||
main() {
|
||||
len(123)
|
||||
}
|
@ -47,6 +47,7 @@ var errs = []struct {
|
||||
{"MissingType.q", errors.MissingType},
|
||||
{"ReturnCountMismatch.q", &errors.ReturnCountMismatch{Count: 1, ExpectedCount: 0}},
|
||||
{"TypeMismatch.q", &errors.TypeMismatch{Expected: "*Any", Encountered: "Int64", ParameterName: "p"}},
|
||||
{"TypeMismatch2.q", &errors.TypeMismatch{Expected: "[]Any", Encountered: "Int64", ParameterName: "array"}},
|
||||
{"UnknownFunction.q", &errors.UnknownFunction{Name: "unknown"}},
|
||||
{"UnknownFunction2.q", &errors.UnknownFunction{Name: "f"}},
|
||||
{"UnknownIdentifier.q", &errors.UnknownIdentifier{Name: "x"}},
|
||||
|
Reference in New Issue
Block a user