You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/baselines/reference/classCanExtendConstructorFunction.errors.txt
+4-4
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ tests/cases/conformance/salsa/generic.js(20,32): error TS2345: Argument of type
7
7
tests/cases/conformance/salsa/second.ts(8,25): error TS2507: Type '(numberEaten: number) => void' is not a constructor function type.
8
8
tests/cases/conformance/salsa/second.ts(14,7): error TS2417: Class static side 'typeof Conestoga' incorrectly extends base class static side 'typeof Wagon'.
9
9
Types of property 'circle' are incompatible.
10
-
Type '(others: typeof Wagon[]) => number' is not assignable to type '(wagons?: Wagon[]) => number'.
10
+
Type '(others: (typeof Wagon)[]) => number' is not assignable to type '(wagons?: Wagon[]) => number'.
11
11
Types of parameters 'others' and 'wagons' are incompatible.
12
-
Type 'Wagon[]' is not assignable to type 'typeof Wagon[]'.
12
+
Type 'Wagon[]' is not assignable to type '(typeof Wagon)[]'.
13
13
Property 'circle' is missing in type 'Wagon' but required in type 'typeof Wagon'.
14
14
tests/cases/conformance/salsa/second.ts(17,15): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
15
15
@@ -93,9 +93,9 @@ tests/cases/conformance/salsa/second.ts(17,15): error TS2345: Argument of type '
93
93
~~~~~~~~~
94
94
!!! error TS2417: Class static side 'typeof Conestoga' incorrectly extends base class static side 'typeof Wagon'.
95
95
!!! error TS2417: Types of property 'circle' are incompatible.
96
-
!!! error TS2417: Type '(others: typeof Wagon[]) => number' is not assignable to type '(wagons?: Wagon[]) => number'.
96
+
!!! error TS2417: Type '(others: (typeof Wagon)[]) => number' is not assignable to type '(wagons?: Wagon[]) => number'.
97
97
!!! error TS2417: Types of parameters 'others' and 'wagons' are incompatible.
98
-
!!! error TS2417: Type 'Wagon[]' is not assignable to type 'typeof Wagon[]'.
98
+
!!! error TS2417: Type 'Wagon[]' is not assignable to type '(typeof Wagon)[]'.
99
99
!!! error TS2417: Property 'circle' is missing in type 'Wagon' but required in type 'typeof Wagon'.
100
100
!!! related TS2728 tests/cases/conformance/salsa/first.js:9:1: 'circle' is declared here.
0 commit comments