Skip to content

Commit ae1ccd0

Browse files
Accepted baselines.
1 parent a4f74a3 commit ae1ccd0

File tree

49 files changed

+116
-1
lines changed

Some content is hidden

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

49 files changed

+116
-1
lines changed

tests/baselines/reference/ES5For-of17.errors.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts(3,20): error
77
for (let v of [v]) {
88
~
99
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
10+
!!! (i) tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts(3,14): error TS2728: 'v' was declared here.
1011
var x = v;
1112
v++;
1213
}

tests/baselines/reference/ES5For-of20.errors.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts(4,15): error
88
for (let v of [v]) {
99
~
1010
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
11+
!!! (i) tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts(3,14): error TS2728: 'v' was declared here.
1112
const v;
1213
~
1314
!!! error TS1155: 'const' declarations must be initialized.

tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.errors.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ tests/cases/conformance/internalModules/DeclarationMerging/simple.ts(2,31): erro
3232
export var Instance = new A();
3333
~
3434
!!! error TS2449: Class 'A' used before its declaration.
35+
!!! (i) tests/cases/conformance/internalModules/DeclarationMerging/simple.ts(6,7): error TS2728: 'A' was declared here.
3536
}
3637

3738
// duplicate identifier

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5417,6 +5417,7 @@ declare namespace ts {
54175417
Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: DiagnosticMessage;
54185418
Cannot_find_lib_definition_for_0: DiagnosticMessage;
54195419
Cannot_find_lib_definition_for_0_Did_you_mean_1: DiagnosticMessage;
5420+
_0_was_declared_here: DiagnosticMessage;
54205421
Import_declaration_0_is_using_private_name_1: DiagnosticMessage;
54215422
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: DiagnosticMessage;
54225423
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: DiagnosticMessage;

tests/baselines/reference/blockScopedBindingUsedBeforeDef.errors.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts(8,7): error TS2448: Bloc
88
for (let {[a]: a} of [{ }]) continue;
99
~
1010
!!! error TS2448: Block-scoped variable 'a' used before its declaration.
11+
!!! (i) tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts(2,16): error TS2728: 'a' was declared here.
1112

1213
// 2:
1314
for (let {[a]: a} = { }; false; ) continue;
1415
~
1516
!!! error TS2448: Block-scoped variable 'a' used before its declaration.
17+
!!! (i) tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts(5,16): error TS2728: 'a' was declared here.
1618

1719
// 3:
1820
let {[b]: b} = { };
1921
~
20-
!!! error TS2448: Block-scoped variable 'b' used before its declaration.
22+
!!! error TS2448: Block-scoped variable 'b' used before its declaration.
23+
!!! (i) tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts(8,11): error TS2728: 'b' was declared here.

tests/baselines/reference/blockScopedVariablesUseBeforeDef.errors.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
99
let a = x;
1010
~
1111
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
12+
!!! (i) tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(3,9): error TS2728: 'x' was declared here.
1213
let x;
1314
}
1415

@@ -67,6 +68,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
6768
static a = x;
6869
~
6970
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
71+
!!! (i) tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(60,9): error TS2728: 'x' was declared here.
7072
}
7173
let x;
7274
}
@@ -76,6 +78,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
7678
static a = x;
7779
~
7880
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
81+
!!! (i) tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(67,9): error TS2728: 'x' was declared here.
7982
}
8083
let x;
8184
}
@@ -113,6 +116,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
113116
a: x
114117
~
115118
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
119+
!!! (i) tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(102,9): error TS2728: 'x' was declared here.
116120
}
117121
let x
118122
}

tests/baselines/reference/circularImportAlias.errors.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ tests/cases/conformance/internalModules/importDeclarations/circularImportAlias.t
99
export class D extends a.C {
1010
~
1111
!!! error TS2449: Class 'C' used before its declaration.
12+
!!! (i) tests/cases/conformance/internalModules/importDeclarations/circularImportAlias.ts(11,18): error TS2728: 'C' was declared here.
1213
id: number;
1314
}
1415
}

tests/baselines/reference/classAbstractInstantiations2.errors.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbst
4545
var x : any = C;
4646
~
4747
!!! error TS2449: Class 'C' used before its declaration.
48+
!!! (i) tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations2.ts(26,7): error TS2728: 'C' was declared here.
4849
new x; // okay -- undefined behavior at runtime
4950

5051
class C extends B { } // error -- not declared abstract

tests/baselines/reference/classDeclarationShouldBeOutOfScopeInComputedNames.errors.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts(8,6):
1212
static readonly [A.p1] = 0;
1313
~
1414
!!! error TS2449: Class 'A' used before its declaration.
15+
!!! (i) tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts(1,7): error TS2728: 'A' was declared here.
1516
static [A.p2]() { return 0 };
1617
~
1718
!!! error TS2449: Class 'A' used before its declaration.
19+
!!! (i) tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts(1,7): error TS2728: 'A' was declared here.
1820
[A.p1]() { }
1921
~
2022
!!! error TS2449: Class 'A' used before its declaration.
23+
!!! (i) tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts(1,7): error TS2728: 'A' was declared here.
2124
[A.p2] = 0
2225
~
2326
!!! error TS2449: Class 'A' used before its declaration.
27+
!!! (i) tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts(1,7): error TS2728: 'A' was declared here.
2428
}
2529

tests/baselines/reference/classExtendsItselfIndirectly.errors.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
1414
!!! error TS2506: 'C' is referenced directly or indirectly in its own base expression.
1515
~
1616
!!! error TS2449: Class 'E' used before its declaration.
17+
!!! (i) tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly.ts(5,7): error TS2728: 'E' was declared here.
1718

1819
class D extends C { bar: string; }
1920
~
@@ -28,6 +29,7 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
2829
!!! error TS2506: 'C2' is referenced directly or indirectly in its own base expression.
2930
~~
3031
!!! error TS2449: Class 'E2' used before its declaration.
32+
!!! (i) tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly.ts(11,7): error TS2728: 'E2' was declared here.
3133

3234
class D2<T> extends C2<T> { bar: T; }
3335
~~

0 commit comments

Comments
 (0)