Skip to content

Commit 4aa7c66

Browse files
Updating baselines.
1 parent e426c83 commit 4aa7c66

File tree

8 files changed

+22
-127
lines changed

8 files changed

+22
-127
lines changed
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
tests/cases/conformance/parser/ecmascript5/Protected/Protected1.ts(1,11): error TS1005: ';' expected.
2-
tests/cases/conformance/parser/ecmascript5/Protected/Protected1.ts(1,1): error TS2304: Cannot find name 'protected'.
1+
tests/cases/conformance/parser/ecmascript5/Protected/Protected1.ts(1,1): error TS1044: 'protected' modifier cannot appear on a module element.
32

43

5-
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected1.ts (2 errors) ====
4+
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected1.ts (1 errors) ====
65
protected class C {
7-
~~~~~
8-
!!! error TS1005: ';' expected.
96
~~~~~~~~~
10-
!!! error TS2304: Cannot find name 'protected'.
7+
!!! error TS1044: 'protected' modifier cannot appear on a module element.
118
}
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
tests/cases/conformance/parser/ecmascript5/Protected/Protected2.ts(1,11): error TS1005: ';' expected.
2-
tests/cases/conformance/parser/ecmascript5/Protected/Protected2.ts(1,1): error TS2304: Cannot find name 'protected'.
1+
tests/cases/conformance/parser/ecmascript5/Protected/Protected2.ts(1,1): error TS1044: 'protected' modifier cannot appear on a module element.
32

43

5-
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected2.ts (2 errors) ====
4+
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected2.ts (1 errors) ====
65
protected module M {
7-
~~~~~~
8-
!!! error TS1005: ';' expected.
96
~~~~~~~~~
10-
!!! error TS2304: Cannot find name 'protected'.
7+
!!! error TS1044: 'protected' modifier cannot appear on a module element.
118
}
Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
1-
tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts(2,3): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
2-
tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts(2,13): error TS1005: ';' expected.
3-
tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts(2,27): error TS1005: ';' expected.
4-
tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts(3,1): error TS1128: Declaration or statement expected.
5-
tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts(2,3): error TS2304: Cannot find name 'protected'.
6-
tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts(2,13): error TS2304: Cannot find name 'constructor'.
1+
tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts(2,3): error TS1089: 'protected' modifier cannot appear on a constructor declaration.
72

83

9-
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts (6 errors) ====
4+
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts (1 errors) ====
105
class C {
116
protected constructor() { }
127
~~~~~~~~~
13-
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
14-
~~~~~~~~~~~
15-
!!! error TS1005: ';' expected.
16-
~
17-
!!! error TS1005: ';' expected.
18-
~~~~~~~~~
19-
!!! error TS2304: Cannot find name 'protected'.
20-
~~~~~~~~~~~
21-
!!! error TS2304: Cannot find name 'constructor'.
22-
}
23-
~
24-
!!! error TS1128: Declaration or statement expected.
8+
!!! error TS1089: 'protected' modifier cannot appear on a constructor declaration.
9+
}
Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
1-
tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts(2,3): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
2-
tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts(2,13): error TS1005: ';' expected.
3-
tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts(2,24): error TS1005: ';' expected.
4-
tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts(3,1): error TS1128: Declaration or statement expected.
5-
tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts(2,3): error TS2304: Cannot find name 'protected'.
6-
tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts(2,20): error TS2304: Cannot find name 'm'.
1+
tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts(2,13): error TS1028: Accessibility modifier already seen.
72

83

9-
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts (6 errors) ====
4+
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts (1 errors) ====
105
class C {
116
protected public m() { }
12-
~~~~~~~~~
13-
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
147
~~~~~~
15-
!!! error TS1005: ';' expected.
16-
~
17-
!!! error TS1005: ';' expected.
18-
~~~~~~~~~
19-
!!! error TS2304: Cannot find name 'protected'.
20-
~
21-
!!! error TS2304: Cannot find name 'm'.
22-
}
23-
~
24-
!!! error TS1128: Declaration or statement expected.
8+
!!! error TS1028: Accessibility modifier already seen.
9+
}

tests/baselines/reference/Protected5.errors.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,9 @@
1-
tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts(2,3): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
2-
tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts(2,10): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
3-
tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts(2,20): error TS1005: ';' expected.
4-
tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts(2,24): error TS1005: ';' expected.
5-
tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts(3,1): error TS1128: Declaration or statement expected.
6-
tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts(2,10): error TS2304: Cannot find name 'protected'.
7-
tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts(2,20): error TS2304: Cannot find name 'm'.
1+
tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts(2,10): error TS1029: 'protected' modifier must precede 'static' modifier.
82

93

10-
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts (7 errors) ====
4+
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts (1 errors) ====
115
class C {
126
static protected m() { }
13-
~~~~~~
14-
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
157
~~~~~~~~~
16-
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
17-
~
18-
!!! error TS1005: ';' expected.
19-
~
20-
!!! error TS1005: ';' expected.
21-
~~~~~~~~~
22-
!!! error TS2304: Cannot find name 'protected'.
23-
~
24-
!!! error TS2304: Cannot find name 'm'.
25-
}
26-
~
27-
!!! error TS1128: Declaration or statement expected.
8+
!!! error TS1029: 'protected' modifier must precede 'static' modifier.
9+
}
Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
1-
tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts(2,3): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
2-
tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts(2,13): error TS1005: ';' expected.
3-
tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts(2,25): error TS1005: ';' expected.
4-
tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts(3,1): error TS1128: Declaration or statement expected.
5-
tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts(2,3): error TS2304: Cannot find name 'protected'.
6-
tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts(2,21): error TS2304: Cannot find name 'm'.
1+
tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts(2,13): error TS1028: Accessibility modifier already seen.
72

83

9-
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts (6 errors) ====
4+
==== tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts (1 errors) ====
105
class C {
116
protected private m() { }
12-
~~~~~~~~~
13-
!!! error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
147
~~~~~~~
15-
!!! error TS1005: ';' expected.
16-
~
17-
!!! error TS1005: ';' expected.
18-
~~~~~~~~~
19-
!!! error TS2304: Cannot find name 'protected'.
20-
~
21-
!!! error TS2304: Cannot find name 'm'.
22-
}
23-
~
24-
!!! error TS1128: Declaration or statement expected.
8+
!!! error TS1028: Accessibility modifier already seen.
9+
}

tests/baselines/reference/Protected9.errors.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)