Skip to content

Commit 8d8b092

Browse files
committed
Baselines
1 parent 6050d59 commit 8d8b092

File tree

561 files changed

+7176
-342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

561 files changed

+7176
-342
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.d.ts(1,16): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
2+
3+
4+
==== module.d.ts (1 errors) ====
5+
declare module Point {
6+
~~~~~
7+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
8+
export var Origin: { x: number; y: number; }
9+
}
10+
11+
==== function.d.ts (0 errors) ====
12+
declare function Point(): { x: number; y: number; }
13+
14+
==== test.ts (0 errors) ====
15+
var cl: { x: number; y: number; }
16+
var cl = Point();
17+
var cl = Point.Origin;
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
class.d.ts(1,16): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
2+
module.d.ts(1,16): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
3+
module.d.ts(2,19): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
4+
5+
6+
==== module.d.ts (2 errors) ====
7+
declare module A {
8+
~
9+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
10+
export module Point {
11+
~~~~~
12+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
13+
export var Origin: {
14+
x: number;
15+
y: number;
16+
}
17+
}
18+
}
19+
20+
==== class.d.ts (1 errors) ====
21+
declare module A {
22+
~
23+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
24+
export class Point {
25+
constructor(x: number, y: number);
26+
x: number;
27+
y: number;
28+
}
29+
}
30+
31+
==== test.ts (0 errors) ====
32+
var p: { x: number; y: number; }
33+
var p = A.Point.Origin;
34+
var p = new A.Point(0, 0); // unexpected error here, bug 840000
35+

tests/baselines/reference/AmbientModuleAndNonAmbientClassWithSameNameAndCommonRoot.errors.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
classPoint.ts(1,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
2+
module.d.ts(1,16): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
3+
module.d.ts(2,19): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
24

35

4-
==== module.d.ts (0 errors) ====
6+
==== module.d.ts (2 errors) ====
57
declare module A {
8+
~
9+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
610
export module Point {
11+
~~~~~
12+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
713
export var Origin: {
814
x: number;
915
y: number;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.d.ts(1,16): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
2+
3+
4+
==== module.d.ts (1 errors) ====
5+
declare module Point {
6+
~~~~~
7+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
8+
export var Origin: { x: number; y: number; }
9+
}
10+
11+
==== function.ts (0 errors) ====
12+
function Point() {
13+
return { x: 0, y: 0 };
14+
}
15+
16+
==== test.ts (0 errors) ====
17+
var cl: { x: number; y: number; }
18+
var cl = Point();
19+
var cl = Point.Origin;
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts(1,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
2+
3+
4+
==== ExportInterfaceWithInaccessibleTypeInIndexerTypeAnnotations.ts (1 errors) ====
5+
module A {
6+
~
7+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
8+
9+
interface Point {
10+
x: number;
11+
y: number;
12+
}
13+
14+
export interface points {
15+
16+
[idx: number]: Point;
17+
[idx: string]: Point;
18+
}
19+
}
20+
21+

tests/baselines/reference/InvalidNonInstantiatedModule.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
InvalidNonInstantiatedModule.ts(1,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
12
InvalidNonInstantiatedModule.ts(5,9): error TS2708: Cannot use namespace 'M' as a value.
23
InvalidNonInstantiatedModule.ts(7,15): error TS2708: Cannot use namespace 'M' as a value.
34

45

5-
==== InvalidNonInstantiatedModule.ts (2 errors) ====
6+
==== InvalidNonInstantiatedModule.ts (3 errors) ====
67
module M {
8+
~
9+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
710
export interface Point { x: number; y: number }
811
}
912

tests/baselines/reference/ModuleWithExportedAndNonExportedImportAlias.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
ModuleWithExportedAndNonExportedImportAlias.ts(1,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
12
ModuleWithExportedAndNonExportedImportAlias.ts(12,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
23
ModuleWithExportedAndNonExportedImportAlias.ts(18,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
34
ModuleWithExportedAndNonExportedImportAlias.ts(37,21): error TS2339: Property 'Lines' does not exist on type 'typeof Geometry'.
45

56

6-
==== ModuleWithExportedAndNonExportedImportAlias.ts (3 errors) ====
7+
==== ModuleWithExportedAndNonExportedImportAlias.ts (4 errors) ====
78
module A {
9+
~
10+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
811
export interface Point {
912
x: number;
1013
y: number;
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
Protected2.ts(1,1): error TS1044: 'protected' modifier cannot appear on a module or namespace element.
2+
Protected2.ts(1,18): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
23

34

4-
==== Protected2.ts (1 errors) ====
5+
==== Protected2.ts (2 errors) ====
56
protected module M {
67
~~~~~~~~~
78
!!! error TS1044: 'protected' modifier cannot appear on a module or namespace element.
9+
~
10+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
811
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts(1,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
2+
TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts(9,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
3+
TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts(19,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
4+
TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts(19,10): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
5+
TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts(19,12): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
6+
TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts(25,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
7+
TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts(26,19): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
8+
TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts(26,21): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
9+
10+
11+
==== TwoInternalModulesThatMergeEachWithExportedAndNonExportedInterfacesOfTheSameName.ts (8 errors) ====
12+
module A {
13+
~
14+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
15+
export interface Point {
16+
x: number;
17+
y: number;
18+
toCarth(): Point;
19+
}
20+
}
21+
22+
module A {
23+
~
24+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
25+
interface Point {
26+
fromCarth(): Point;
27+
}
28+
}
29+
30+
// ensure merges as expected
31+
var p: { x: number; y: number; toCarth(): A.Point; };
32+
var p: A.Point;
33+
34+
module X.Y.Z {
35+
~
36+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
37+
~
38+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
39+
~
40+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
41+
export interface Line {
42+
new (start: A.Point, end: A.Point);
43+
}
44+
}
45+
46+
module X {
47+
~
48+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
49+
export module Y.Z {
50+
~
51+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
52+
~
53+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
54+
interface Line {
55+
start: A.Point;
56+
end: A.Point;
57+
}
58+
}
59+
}
60+
61+
// ensure merges as expected
62+
var l: { new (s: A.Point, e: A.Point); }
63+
var l: X.Y.Z.Line;
64+
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts(1,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
2+
TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts(9,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
3+
TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts(19,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
4+
TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts(19,10): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
5+
TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts(19,12): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
6+
TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts(25,8): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
7+
TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts(26,19): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
8+
TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts(26,21): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
9+
10+
11+
==== TwoInternalModulesThatMergeEachWithExportedInterfacesOfTheSameName.ts (8 errors) ====
12+
module A {
13+
~
14+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
15+
export interface Point {
16+
x: number;
17+
y: number;
18+
toCarth(): Point;
19+
}
20+
}
21+
22+
module A {
23+
~
24+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
25+
export interface Point {
26+
fromCarth(): Point;
27+
}
28+
}
29+
30+
// ensure merges as expected
31+
var p: { x: number; y: number; toCarth(): A.Point; fromCarth(): A.Point; };
32+
var p: A.Point;
33+
34+
module X.Y.Z {
35+
~
36+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
37+
~
38+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
39+
~
40+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
41+
export interface Line {
42+
new (start: A.Point, end: A.Point);
43+
}
44+
}
45+
46+
module X {
47+
~
48+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
49+
export module Y.Z {
50+
~
51+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
52+
~
53+
!!! error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
54+
export interface Line {
55+
start: A.Point;
56+
end: A.Point;
57+
}
58+
}
59+
}
60+
61+
// ensure merges as expected
62+
var l: { start: A.Point; end: A.Point; new (s: A.Point, e: A.Point); }
63+
var l: X.Y.Z.Line;
64+

0 commit comments

Comments
 (0)