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-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
first.js(23,9): error TS2554: Expected 1 arguments, but got 0.
2
2
first.js(31,5): error TS2416: Property 'load' in type 'Sql' is not assignable to the same property in base type 'Wagon'.
3
-
Type '(files: string[], format: "csv" | "json" | "xmlolololol") => void' is not assignable to type '(supplies?: any[]) => void'.
3
+
Type '(files: string[], format: "csv" | "json" | "xmlolololol") => void' is not assignable to type '(supplies?: any[] | undefined) => void'.
4
4
Target signature provides too few arguments. Expected 2 or more, but got 1.
5
5
first.js(47,24): error TS2507: Type '(numberEaten: number) => void' is not a constructor function type.
6
6
generic.js(19,19): error TS2554: Expected 1 arguments, but got 0.
7
7
generic.js(20,32): error TS2345: Argument of type 'number' is not assignable to parameter of type '{ claim: "ignorant" | "malicious"; }'.
8
8
second.ts(8,25): error TS2507: Type '(numberEaten: number) => void' is not a constructor function type.
9
9
second.ts(14,7): error TS2417: Class static side 'typeof Conestoga' incorrectly extends base class static side 'typeof Wagon'.
10
10
Types of property 'circle' are incompatible.
11
-
Type '(others: (typeof Wagon)[]) => number' is not assignable to type '(wagons?: Wagon[]) => number'.
11
+
Type '(others: (typeof Wagon)[]) => number' is not assignable to type '(wagons?: Wagon[] | undefined) => number'.
12
12
Types of parameters 'others' and 'wagons' are incompatible.
13
13
Type 'Wagon[]' is not assignable to type '(typeof Wagon)[]'.
14
14
Property 'circle' is missing in type 'Wagon' but required in type 'typeof Wagon'.
@@ -52,7 +52,7 @@ second.ts(17,15): error TS2345: Argument of type 'string' is not assignable to p
52
52
load(files, format) {
53
53
~~~~
54
54
!!! error TS2416: Property 'load' in type 'Sql' is not assignable to the same property in base type 'Wagon'.
55
-
!!! error TS2416: Type '(files: string[], format: "csv" | "json" | "xmlolololol") => void' is not assignable to type '(supplies?: any[]) => void'.
55
+
!!! error TS2416: Type '(files: string[], format: "csv" | "json" | "xmlolololol") => void' is not assignable to type '(supplies?: any[] | undefined) => void'.
56
56
!!! error TS2416: Target signature provides too few arguments. Expected 2 or more, but got 1.
57
57
if (format === "xmlolololol") {
58
58
throw new Error("please do not use XML. It was a joke.");
@@ -95,7 +95,7 @@ second.ts(17,15): error TS2345: Argument of type 'string' is not assignable to p
95
95
~~~~~~~~~
96
96
!!! error TS2417: Class static side 'typeof Conestoga' incorrectly extends base class static side 'typeof Wagon'.
97
97
!!! error TS2417: Types of property 'circle' are incompatible.
98
-
!!! error TS2417: Type '(others: (typeof Wagon)[]) => number' is not assignable to type '(wagons?: Wagon[]) => number'.
98
+
!!! error TS2417: Type '(others: (typeof Wagon)[]) => number' is not assignable to type '(wagons?: Wagon[] | undefined) => number'.
99
99
!!! error TS2417: Types of parameters 'others' and 'wagons' are incompatible.
100
100
!!! error TS2417: Type 'Wagon[]' is not assignable to type '(typeof Wagon)[]'.
101
101
!!! error TS2417: Property 'circle' is missing in type 'Wagon' but required in type 'typeof Wagon'.
0 commit comments