File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments