Skip to content

Commit b265467

Browse files
Accepted baselines.
1 parent 942ca46 commit b265467

14 files changed

+146
-146
lines changed

tests/baselines/reference/ambientErrors.errors.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
tests/cases/conformance/ambient/ambientErrors.ts(2,15): error TS1039: Initializers are not allowed in ambient contexts.
22
tests/cases/conformance/ambient/ambientErrors.ts(6,18): error TS2382: Specialized overload signature is not assignable to any non-specialized signature.
33
tests/cases/conformance/ambient/ambientErrors.ts(17,22): error TS2371: A parameter initializer is only allowed in a function or constructor implementation.
4-
tests/cases/conformance/ambient/ambientErrors.ts(20,24): error TS1184: An implementation cannot be declared in ambient contexts.
4+
tests/cases/conformance/ambient/ambientErrors.ts(20,24): error TS1183: An implementation cannot be declared in ambient contexts.
55
tests/cases/conformance/ambient/ambientErrors.ts(24,5): error TS1066: Ambient enum elements can only have integer literal initializers.
66
tests/cases/conformance/ambient/ambientErrors.ts(29,5): error TS1066: Ambient enum elements can only have integer literal initializers.
77
tests/cases/conformance/ambient/ambientErrors.ts(34,11): error TS1039: Initializers are not allowed in ambient contexts.
8-
tests/cases/conformance/ambient/ambientErrors.ts(35,19): error TS1184: An implementation cannot be declared in ambient contexts.
8+
tests/cases/conformance/ambient/ambientErrors.ts(35,19): error TS1183: An implementation cannot be declared in ambient contexts.
99
tests/cases/conformance/ambient/ambientErrors.ts(37,20): error TS1039: Initializers are not allowed in ambient contexts.
1010
tests/cases/conformance/ambient/ambientErrors.ts(38,13): error TS1039: Initializers are not allowed in ambient contexts.
11-
tests/cases/conformance/ambient/ambientErrors.ts(39,23): error TS1184: An implementation cannot be declared in ambient contexts.
12-
tests/cases/conformance/ambient/ambientErrors.ts(40,14): error TS1184: An implementation cannot be declared in ambient contexts.
13-
tests/cases/conformance/ambient/ambientErrors.ts(41,22): error TS1184: An implementation cannot be declared in ambient contexts.
11+
tests/cases/conformance/ambient/ambientErrors.ts(39,23): error TS1183: An implementation cannot be declared in ambient contexts.
12+
tests/cases/conformance/ambient/ambientErrors.ts(40,14): error TS1183: An implementation cannot be declared in ambient contexts.
13+
tests/cases/conformance/ambient/ambientErrors.ts(41,22): error TS1183: An implementation cannot be declared in ambient contexts.
1414
tests/cases/conformance/ambient/ambientErrors.ts(47,20): error TS2435: Ambient modules cannot be nested in other modules.
1515
tests/cases/conformance/ambient/ambientErrors.ts(51,16): error TS2436: Ambient module declaration cannot specify relative module name.
1616
tests/cases/conformance/ambient/ambientErrors.ts(57,5): error TS2309: An export assignment cannot be used in a module with other exported elements.
@@ -44,7 +44,7 @@ tests/cases/conformance/ambient/ambientErrors.ts(57,5): error TS2309: An export
4444
// Ambient function with function body
4545
declare function fn4() { };
4646
~
47-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
47+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
4848

4949
// Ambient enum with non - integer literal constant member
5050
declare enum E1 {
@@ -67,7 +67,7 @@ tests/cases/conformance/ambient/ambientErrors.ts(57,5): error TS2309: An export
6767
!!! error TS1039: Initializers are not allowed in ambient contexts.
6868
function fn() { }
6969
~
70-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
70+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
7171
class C {
7272
static x = 3;
7373
~
@@ -77,13 +77,13 @@ tests/cases/conformance/ambient/ambientErrors.ts(57,5): error TS2309: An export
7777
!!! error TS1039: Initializers are not allowed in ambient contexts.
7878
constructor() { }
7979
~
80-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
80+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
8181
fn() { }
8282
~
83-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
83+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
8484
static sfn() { }
8585
~
86-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
86+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
8787
}
8888
}
8989

tests/baselines/reference/classAbstractDeclarations.d.errors.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts(2,5): error TS1242: 'abstract' modifier can only appear on a class or method declaration.
2-
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts(2,28): error TS1184: An implementation cannot be declared in ambient contexts.
2+
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts(2,28): error TS1183: An implementation cannot be declared in ambient contexts.
33
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts(11,15): error TS2515: Non-abstract class 'CC' does not implement inherited abstract member 'foo' from class 'AA'.
44
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts(13,15): error TS2515: Non-abstract class 'DD' does not implement inherited abstract member 'foo' from class 'BB'.
55
tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractDeclarations.d.ts(17,15): error TS2515: Non-abstract class 'FF' does not implement inherited abstract member 'foo' from class 'CC'.
@@ -11,7 +11,7 @@ tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbst
1111
~~~~~~~~
1212
!!! error TS1242: 'abstract' modifier can only appear on a class or method declaration.
1313
~
14-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
14+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
1515
}
1616

1717
declare abstract class AA {

tests/baselines/reference/constructorOverloads6.errors.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/constructorOverloads6.ts(4,25): error TS1184: An implementation cannot be declared in ambient contexts.
1+
tests/cases/compiler/constructorOverloads6.ts(4,25): error TS1183: An implementation cannot be declared in ambient contexts.
22

33

44
==== tests/cases/compiler/constructorOverloads6.ts (1 errors) ====
@@ -7,7 +7,7 @@ tests/cases/compiler/constructorOverloads6.ts(4,25): error TS1184: An implementa
77
constructor(n: number);
88
constructor(x: any) {
99
~
10-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
10+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
1111

1212
}
1313
bar1():void;

tests/baselines/reference/exportDeclareClass1.errors.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
tests/cases/compiler/exportDeclareClass1.ts(2,21): error TS1184: An implementation cannot be declared in ambient contexts.
2-
tests/cases/compiler/exportDeclareClass1.ts(3,31): error TS1184: An implementation cannot be declared in ambient contexts.
1+
tests/cases/compiler/exportDeclareClass1.ts(2,21): error TS1183: An implementation cannot be declared in ambient contexts.
2+
tests/cases/compiler/exportDeclareClass1.ts(3,31): error TS1183: An implementation cannot be declared in ambient contexts.
33

44

55
==== tests/cases/compiler/exportDeclareClass1.ts (2 errors) ====
66
export declare class eaC {
77
static tF() { };
88
~
9-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
9+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
1010
static tsF(param:any) { };
1111
~
12-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
12+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
1313
};
1414

1515
export declare class eaC2 {

tests/baselines/reference/externSyntax.errors.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/externSyntax.ts(8,20): error TS1184: An implementation cannot be declared in ambient contexts.
1+
tests/cases/compiler/externSyntax.ts(8,20): error TS1183: An implementation cannot be declared in ambient contexts.
22

33

44
==== tests/cases/compiler/externSyntax.ts (1 errors) ====
@@ -11,7 +11,7 @@ tests/cases/compiler/externSyntax.ts(8,20): error TS1184: An implementation cann
1111
public f();
1212
public g() { } // error body
1313
~
14-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
14+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
1515
}
1616
}
1717

tests/baselines/reference/functionsWithModifiersInBlocks1.errors.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(2,4): error TS1184: Modifiers cannot appear here.
22
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(2,21): error TS2393: Duplicate function implementation.
3-
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(2,25): error TS1184: An implementation cannot be declared in ambient contexts.
3+
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(2,25): error TS1183: An implementation cannot be declared in ambient contexts.
44
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(3,4): error TS1184: Modifiers cannot appear here.
55
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(3,20): error TS2393: Duplicate function implementation.
66
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(4,4): error TS1184: Modifiers cannot appear here.
77
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(4,28): error TS2393: Duplicate function implementation.
8-
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(4,32): error TS1184: An implementation cannot be declared in ambient contexts.
8+
tests/cases/compiler/functionsWithModifiersInBlocks1.ts(4,32): error TS1183: An implementation cannot be declared in ambient contexts.
99

1010

1111
==== tests/cases/compiler/functionsWithModifiersInBlocks1.ts (8 errors) ====
@@ -16,7 +16,7 @@ tests/cases/compiler/functionsWithModifiersInBlocks1.ts(4,32): error TS1184: An
1616
~
1717
!!! error TS2393: Duplicate function implementation.
1818
~
19-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
19+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
2020
export function f() { }
2121
~~~~~~
2222
!!! error TS1184: Modifiers cannot appear here.
@@ -28,5 +28,5 @@ tests/cases/compiler/functionsWithModifiersInBlocks1.ts(4,32): error TS1184: An
2828
~
2929
!!! error TS2393: Duplicate function implementation.
3030
~
31-
!!! error TS1184: An implementation cannot be declared in ambient contexts.
31+
!!! error TS1183: An implementation cannot be declared in ambient contexts.
3232
}

0 commit comments

Comments
 (0)