Replaced builtin store function with a new syntax
This commit is contained in:
parent
013d3dd8cd
commit
3da61f5c69
12 changed files with 54 additions and 46 deletions
4
tests/errors/TypeMismatch5.q
Normal file
4
tests/errors/TypeMismatch5.q
Normal file
|
@ -0,0 +1,4 @@
|
|||
main() {
|
||||
a := 1
|
||||
[a] = 2
|
||||
}
|
|
@ -51,6 +51,9 @@ var errs = []struct {
|
|||
{"ReturnCountMismatch.q", &errors.ReturnCountMismatch{Count: 1, ExpectedCount: 0}},
|
||||
{"TypeMismatch.q", &errors.TypeMismatch{Expected: "*any", Encountered: "int", ParameterName: "p"}},
|
||||
{"TypeMismatch2.q", &errors.TypeMismatch{Expected: "[]any", Encountered: "int", ParameterName: "array"}},
|
||||
{"TypeMismatch3.q", &errors.TypeMismatch{Expected: "int", Encountered: "[]uint8"}},
|
||||
{"TypeMismatch4.q", &errors.TypeMismatch{Expected: "int", Encountered: "[]uint8"}},
|
||||
{"TypeMismatch5.q", &errors.TypeMismatch{Expected: "*any", Encountered: "int64"}},
|
||||
{"UnknownIdentifier.q", &errors.UnknownIdentifier{Name: "x"}},
|
||||
{"UnknownIdentifier2.q", &errors.UnknownIdentifier{Name: "x"}},
|
||||
{"UnknownIdentifier3.q", &errors.UnknownIdentifier{Name: "x"}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue