Improved type system checks

This commit is contained in:
Eduard Urbach 2025-02-10 14:09:27 +01:00
parent f1c8b2daf5
commit e2f607805c
Signed by: eduard
GPG key ID: 49226B848C78F6C8
9 changed files with 49 additions and 61 deletions

View file

@ -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"}},