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/strictModeInConstructor.errors.txt
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
-
tests/cases/compiler/strictModeInConstructor.ts(9,5): error TS2376: A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties.
2
1
tests/cases/compiler/strictModeInConstructor.ts(27,5): error TS2376: A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties.
@@ -12,14 +11,9 @@ tests/cases/compiler/strictModeInConstructor.ts(27,5): error TS2376: A 'super' c
12
11
public s: number = 9;
13
12
14
13
constructor () {
15
-
~~~~~~~~~~~~~~~~
16
14
"use strict"; // No error
17
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
15
super();
19
-
~~~~~~~~~~~~~~~~
20
16
}
21
-
~~~~~
22
-
!!! error TS2376: A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties.
0 commit comments