File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
tests/baselines/reference Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 62
62
a = a1; // Error
63
63
~
64
64
!!! Type '[number, string]' is not assignable to type 'number[]':
65
- !!! Types of property 'concat' are incompatible:
66
- !!! Type '{ <U extends {}[]>(...items: U[]): {}[]; (...items: {}[]): {}[]; }' is not assignable to type '{ <U extends number[]>(...items: U[]): number[]; (...items: number[]): number[]; }':
67
- !!! Type '{}[]' is not assignable to type 'number[]':
68
- !!! Type '{}' is not assignable to type 'number'.
65
+ !!! Types of property 'pop' are incompatible:
66
+ !!! Type '() => {}' is not assignable to type '() => number':
67
+ !!! Type '{}' is not assignable to type 'number'.
69
68
a = a2;
70
69
a = a3; // Error
71
70
~
72
71
!!! Type '[number, {}]' is not assignable to type 'number[]':
73
- !!! Types of property 'concat' are incompatible:
74
- !!! Type '{ <U extends {}[]>(...items: U[]): {}[]; (...items: {}[]): {}[]; }' is not assignable to type '{ <U extends number[]>(...items: U[]): number[]; (...items: number[]): number[]; }':
75
- !!! Type '{}[]' is not assignable to type 'number[]':
76
- !!! Type '{}' is not assignable to type 'number'.
72
+ !!! Types of property 'pop' are incompatible:
73
+ !!! Type '() => {}' is not assignable to type '() => number':
74
+ !!! Type '{}' is not assignable to type 'number'.
77
75
a1 = a2; // Error
78
76
~~
79
77
!!! Type '[number, number]' is not assignable to type '[number, string]':
You can’t perform that action at this time.
0 commit comments