Skip to content

Commit f4ef31d

Browse files
fix tests
1 parent bc90e11 commit f4ef31d

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

tests/compiler/call-rest-err-json

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/compiler/call-rest-err.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"asc_flags": [
3+
],
4+
"stderr": [
5+
"TS2322: Type '~lib/string/String' is not assignable to type 'i32'.",
6+
"sum('a', 'b')",
7+
"TS2322: Type '~lib/string/String' is not assignable to type 'i32'.",
8+
"sum('a', 'b')",
9+
"TS2322: Type '~lib/string/String' is not assignable to type 'i32'.",
10+
"count(1, 'a')"
11+
]
12+
}

tests/compiler/call-rest-err.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ function count<T>(...args: T[]): i32 {
1010
return args.length;
1111
}
1212

13-
sum("a", "b"); // expect a type mismatch error on each argument
14-
count(1, "a"); // expect a type mismatch error on the second argument
13+
sum('a', 'b'); // expect a type mismatch error on each argument
14+
count(1, 'a'); // expect a type mismatch error on the second argument

0 commit comments

Comments
 (0)