diff --git a/tests/baselines/reference/ES5For-of17.errors.txt b/tests/baselines/reference/ES5For-of17.errors.txt
index bddcd678ac2..ee24a232bd2 100644
--- a/tests/baselines/reference/ES5For-of17.errors.txt
+++ b/tests/baselines/reference/ES5For-of17.errors.txt
@@ -7,7 +7,7 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts(3,20): error
for (let v of [v]) {
~
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
-!!! related TS2728 tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts:3:14: 'v' was declared here.
+!!! related TS2728 tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts:3:14: 'v' is declared here.
var x = v;
v++;
}
diff --git a/tests/baselines/reference/ES5For-of20.errors.txt b/tests/baselines/reference/ES5For-of20.errors.txt
index bc2e4ee0f2b..c72dee5d27f 100644
--- a/tests/baselines/reference/ES5For-of20.errors.txt
+++ b/tests/baselines/reference/ES5For-of20.errors.txt
@@ -8,7 +8,7 @@ tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts(4,15): error
for (let v of [v]) {
~
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
-!!! related TS2728 tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts:3:14: 'v' was declared here.
+!!! related TS2728 tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts:3:14: 'v' is declared here.
const v;
~
!!! error TS1155: 'const' declarations must be initialized.
diff --git a/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.errors.txt b/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.errors.txt
index e89e993b6bd..207d3569b31 100644
--- a/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.errors.txt
+++ b/tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.errors.txt
@@ -32,7 +32,7 @@ tests/cases/conformance/internalModules/DeclarationMerging/simple.ts(2,31): erro
export var Instance = new A();
~
!!! error TS2449: Class 'A' used before its declaration.
-!!! related TS2728 tests/cases/conformance/internalModules/DeclarationMerging/simple.ts:6:7: 'A' was declared here.
+!!! related TS2728 tests/cases/conformance/internalModules/DeclarationMerging/simple.ts:6:7: 'A' is declared here.
}
// duplicate identifier
diff --git a/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.errors.txt b/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.errors.txt
index 96864565d85..68033f3eeec 100644
--- a/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.errors.txt
+++ b/tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.errors.txt
@@ -35,4 +35,5 @@ tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAnd
!!! error TS2339: Property 'fn2' does not exist on type 'typeof A'.
var fng2 = A.fng2;
~~~~
-!!! error TS2551: Property 'fng2' does not exist on type 'typeof A'. Did you mean 'fng'?
\ No newline at end of file
+!!! error TS2551: Property 'fng2' does not exist on type 'typeof A'. Did you mean 'fng'?
+!!! related TS2728 tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAndNonExportedFunctions.ts:7:21: 'fng' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/anonymousClassExpression2.errors.txt b/tests/baselines/reference/anonymousClassExpression2.errors.txt
index 6bc858bc542..fb8bec4e315 100644
--- a/tests/baselines/reference/anonymousClassExpression2.errors.txt
+++ b/tests/baselines/reference/anonymousClassExpression2.errors.txt
@@ -17,6 +17,7 @@ tests/cases/compiler/anonymousClassExpression2.ts(13,18): error TS2551: Property
this.methodA; // error
~~~~~~~
!!! error TS2551: Property 'methodA' does not exist on type 'B'. Did you mean 'methodB'?
+!!! related TS2728 tests/cases/compiler/anonymousClassExpression2.ts:12:9: 'methodB' is declared here.
this.methodB; // ok
}
}
diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts
index 82b7e0c3ef8..4722ecbf6f9 100644
--- a/tests/baselines/reference/api/tsserverlibrary.d.ts
+++ b/tests/baselines/reference/api/tsserverlibrary.d.ts
@@ -5430,7 +5430,7 @@ declare namespace ts {
Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: DiagnosticMessage;
Cannot_find_lib_definition_for_0: DiagnosticMessage;
Cannot_find_lib_definition_for_0_Did_you_mean_1: DiagnosticMessage;
- _0_was_declared_here: DiagnosticMessage;
+ _0_is_declared_here: DiagnosticMessage;
Property_0_is_used_before_its_initialization: DiagnosticMessage;
Import_declaration_0_is_using_private_name_1: DiagnosticMessage;
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: DiagnosticMessage;
diff --git a/tests/baselines/reference/assignmentRestElementWithErrorSourceType.errors.txt b/tests/baselines/reference/assignmentRestElementWithErrorSourceType.errors.txt
index ff79716cab8..1c100d66d9a 100644
--- a/tests/baselines/reference/assignmentRestElementWithErrorSourceType.errors.txt
+++ b/tests/baselines/reference/assignmentRestElementWithErrorSourceType.errors.txt
@@ -8,4 +8,5 @@ tests/cases/compiler/assignmentRestElementWithErrorSourceType.ts(2,10): error TS
~
!!! error TS2304: Cannot find name 'c'.
~~~~~
-!!! error TS2552: Cannot find name 'tupel'. Did you mean 'tuple'?
\ No newline at end of file
+!!! error TS2552: Cannot find name 'tupel'. Did you mean 'tuple'?
+!!! related TS2728 tests/cases/compiler/assignmentRestElementWithErrorSourceType.ts:1:5: 'tuple' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/baseCheck.errors.txt b/tests/baselines/reference/baseCheck.errors.txt
index 0ae410d4e34..ca99ca426fc 100644
--- a/tests/baselines/reference/baseCheck.errors.txt
+++ b/tests/baselines/reference/baseCheck.errors.txt
@@ -21,6 +21,7 @@ tests/cases/compiler/baseCheck.ts(26,9): error TS2304: Cannot find name 'x'.
super(0, loc);
~~~
!!! error TS2552: Cannot find name 'loc'. Did you mean 'ELoc'?
+!!! related TS2728 tests/cases/compiler/baseCheck.ts:2:7: 'ELoc' is declared here.
}
m() {
diff --git a/tests/baselines/reference/blockScopedBindingUsedBeforeDef.errors.txt b/tests/baselines/reference/blockScopedBindingUsedBeforeDef.errors.txt
index 3179710b21b..042f5e6de4f 100644
--- a/tests/baselines/reference/blockScopedBindingUsedBeforeDef.errors.txt
+++ b/tests/baselines/reference/blockScopedBindingUsedBeforeDef.errors.txt
@@ -8,16 +8,16 @@ tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts(8,7): error TS2448: Bloc
for (let {[a]: a} of [{ }]) continue;
~
!!! error TS2448: Block-scoped variable 'a' used before its declaration.
-!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:2:16: 'a' was declared here.
+!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:2:16: 'a' is declared here.
// 2:
for (let {[a]: a} = { }; false; ) continue;
~
!!! error TS2448: Block-scoped variable 'a' used before its declaration.
-!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:5:16: 'a' was declared here.
+!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:5:16: 'a' is declared here.
// 3:
let {[b]: b} = { };
~
!!! error TS2448: Block-scoped variable 'b' used before its declaration.
-!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:8:11: 'b' was declared here.
\ No newline at end of file
+!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:8:11: 'b' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.errors.txt b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.errors.txt
index cc526c2c2f2..4de97fa02a4 100644
--- a/tests/baselines/reference/blockScopedVariablesUseBeforeDef.errors.txt
+++ b/tests/baselines/reference/blockScopedVariablesUseBeforeDef.errors.txt
@@ -9,7 +9,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
let a = x;
~
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
-!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:3:9: 'x' was declared here.
+!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:3:9: 'x' is declared here.
let x;
}
@@ -68,7 +68,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
static a = x;
~
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
-!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:60:9: 'x' was declared here.
+!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:60:9: 'x' is declared here.
}
let x;
}
@@ -78,7 +78,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
static a = x;
~
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
-!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:67:9: 'x' was declared here.
+!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:67:9: 'x' is declared here.
}
let x;
}
@@ -116,7 +116,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
a: x
~
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
-!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:102:9: 'x' was declared here.
+!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:102:9: 'x' is declared here.
}
let x
}
\ No newline at end of file
diff --git a/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
index 986df05ceb6..4851bc3b466 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
@@ -32,6 +32,7 @@ tests/cases/conformance/jsx/file.tsx(32,10): error TS2322: Type '{ children: ((u
{ user.NAme }
~~~~
!!! error TS2551: Property 'NAme' does not exist on type 'IUser'. Did you mean 'Name'?
+!!! related TS2728 tests/cases/conformance/jsx/file.tsx:4:5: 'Name' is declared here.
) }
);
diff --git a/tests/baselines/reference/circularImportAlias.errors.txt b/tests/baselines/reference/circularImportAlias.errors.txt
index 5ebf9405e56..a2488839b86 100644
--- a/tests/baselines/reference/circularImportAlias.errors.txt
+++ b/tests/baselines/reference/circularImportAlias.errors.txt
@@ -9,7 +9,7 @@ tests/cases/conformance/internalModules/importDeclarations/circularImportAlias.t
export class D extends a.C {
~
!!! error TS2449: Class 'C' used before its declaration.
-!!! related TS2728 tests/cases/conformance/internalModules/importDeclarations/circularImportAlias.ts:11:18: 'C' was declared here.
+!!! related TS2728 tests/cases/conformance/internalModules/importDeclarations/circularImportAlias.ts:11:18: 'C' is declared here.
id: number;
}
}
diff --git a/tests/baselines/reference/classAbstractInstantiations2.errors.txt b/tests/baselines/reference/classAbstractInstantiations2.errors.txt
index 5349382940e..3d1cb33d483 100644
--- a/tests/baselines/reference/classAbstractInstantiations2.errors.txt
+++ b/tests/baselines/reference/classAbstractInstantiations2.errors.txt
@@ -45,7 +45,7 @@ tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbst
var x : any = C;
~
!!! error TS2449: Class 'C' used before its declaration.
-!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations2.ts:26:7: 'C' was declared here.
+!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classAbstractKeyword/classAbstractInstantiations2.ts:26:7: 'C' is declared here.
new x; // okay -- undefined behavior at runtime
class C extends B { } // error -- not declared abstract
diff --git a/tests/baselines/reference/classDeclarationShouldBeOutOfScopeInComputedNames.errors.txt b/tests/baselines/reference/classDeclarationShouldBeOutOfScopeInComputedNames.errors.txt
index 3c3f0ad3fb3..a14d755b6ad 100644
--- a/tests/baselines/reference/classDeclarationShouldBeOutOfScopeInComputedNames.errors.txt
+++ b/tests/baselines/reference/classDeclarationShouldBeOutOfScopeInComputedNames.errors.txt
@@ -12,18 +12,18 @@ tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts(8,6):
static readonly [A.p1] = 0;
~
!!! error TS2449: Class 'A' used before its declaration.
-!!! related TS2728 tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts:1:7: 'A' was declared here.
+!!! related TS2728 tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts:1:7: 'A' is declared here.
static [A.p2]() { return 0 };
~
!!! error TS2449: Class 'A' used before its declaration.
-!!! related TS2728 tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts:1:7: 'A' was declared here.
+!!! related TS2728 tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts:1:7: 'A' is declared here.
[A.p1]() { }
~
!!! error TS2449: Class 'A' used before its declaration.
-!!! related TS2728 tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts:1:7: 'A' was declared here.
+!!! related TS2728 tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts:1:7: 'A' is declared here.
[A.p2] = 0
~
!!! error TS2449: Class 'A' used before its declaration.
-!!! related TS2728 tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts:1:7: 'A' was declared here.
+!!! related TS2728 tests/cases/compiler/classDeclarationShouldBeOutOfScopeInComputedNames.ts:1:7: 'A' is declared here.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/classExtendsItselfIndirectly.errors.txt b/tests/baselines/reference/classExtendsItselfIndirectly.errors.txt
index 908b8feffc3..0f4def9826c 100644
--- a/tests/baselines/reference/classExtendsItselfIndirectly.errors.txt
+++ b/tests/baselines/reference/classExtendsItselfIndirectly.errors.txt
@@ -14,7 +14,7 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
!!! error TS2506: 'C' is referenced directly or indirectly in its own base expression.
~
!!! error TS2449: Class 'E' used before its declaration.
-!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly.ts:5:7: 'E' was declared here.
+!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly.ts:5:7: 'E' is declared here.
class D extends C { bar: string; }
~
@@ -29,7 +29,7 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
!!! error TS2506: 'C2' is referenced directly or indirectly in its own base expression.
~~
!!! error TS2449: Class 'E2' used before its declaration.
-!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly.ts:11:7: 'E2' was declared here.
+!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly.ts:11:7: 'E2' is declared here.
class D2 extends C2 { bar: T; }
~~
diff --git a/tests/baselines/reference/classExtendsItselfIndirectly2.errors.txt b/tests/baselines/reference/classExtendsItselfIndirectly2.errors.txt
index 8fabd5364b7..3b5d16fa64f 100644
--- a/tests/baselines/reference/classExtendsItselfIndirectly2.errors.txt
+++ b/tests/baselines/reference/classExtendsItselfIndirectly2.errors.txt
@@ -14,7 +14,7 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
!!! error TS2506: 'C' is referenced directly or indirectly in its own base expression.
~
!!! error TS2449: Class 'E' used before its declaration.
-!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts:9:18: 'E' was declared here.
+!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts:9:18: 'E' is declared here.
module M {
export class D extends C { bar: string; }
@@ -35,7 +35,7 @@ tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/cla
!!! error TS2506: 'C2' is referenced directly or indirectly in its own base expression.
~~
!!! error TS2449: Class 'E2' used before its declaration.
-!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts:20:22: 'E2' was declared here.
+!!! related TS2728 tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsItselfIndirectly2.ts:20:22: 'E2' is declared here.
module P {
export class D2 extends C2 { bar: T; }
diff --git a/tests/baselines/reference/classInheritence.errors.txt b/tests/baselines/reference/classInheritence.errors.txt
index b5231b768a9..338fcd16393 100644
--- a/tests/baselines/reference/classInheritence.errors.txt
+++ b/tests/baselines/reference/classInheritence.errors.txt
@@ -6,7 +6,7 @@ tests/cases/compiler/classInheritence.ts(2,7): error TS2506: 'A' is referenced d
class B extends A { }
~
!!! error TS2449: Class 'A' used before its declaration.
-!!! related TS2728 tests/cases/compiler/classInheritence.ts:2:7: 'A' was declared here.
+!!! related TS2728 tests/cases/compiler/classInheritence.ts:2:7: 'A' is declared here.
class A extends A { }
~
!!! error TS2506: 'A' is referenced directly or indirectly in its own base expression.
\ No newline at end of file
diff --git a/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.errors.txt b/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.errors.txt
index 95cc59c69f6..ce7dfcd7aa7 100644
--- a/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.errors.txt
+++ b/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.errors.txt
@@ -12,6 +12,6 @@ tests/cases/compiler/classMergedWithInterfaceMultipleBasesNoError.ts(8,30): erro
readonly observer = this.handleIntersection;
~~~~~~~~~~~~~~~~~~
!!! error TS2729: Property 'handleIntersection' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/classMergedWithInterfaceMultipleBasesNoError.ts:9:14: 'handleIntersection' was declared here.
+!!! related TS2728 tests/cases/compiler/classMergedWithInterfaceMultipleBasesNoError.ts:9:14: 'handleIntersection' is declared here.
readonly handleIntersection = () => { }
}
\ No newline at end of file
diff --git a/tests/baselines/reference/classOrder2.errors.txt b/tests/baselines/reference/classOrder2.errors.txt
index 09b8fb47c18..229a7e283db 100644
--- a/tests/baselines/reference/classOrder2.errors.txt
+++ b/tests/baselines/reference/classOrder2.errors.txt
@@ -5,7 +5,7 @@ tests/cases/compiler/classOrder2.ts(1,17): error TS2449: Class 'B' used before i
class A extends B {
~
!!! error TS2449: Class 'B' used before its declaration.
-!!! related TS2728 tests/cases/compiler/classOrder2.ts:7:7: 'B' was declared here.
+!!! related TS2728 tests/cases/compiler/classOrder2.ts:7:7: 'B' is declared here.
foo() { this.bar(); }
diff --git a/tests/baselines/reference/classSideInheritance2.errors.txt b/tests/baselines/reference/classSideInheritance2.errors.txt
index 88ad429e2ec..2ec59a360a9 100644
--- a/tests/baselines/reference/classSideInheritance2.errors.txt
+++ b/tests/baselines/reference/classSideInheritance2.errors.txt
@@ -11,7 +11,7 @@ tests/cases/compiler/classSideInheritance2.ts(7,23): error TS2449: Class 'TextBa
class SubText extends TextBase {
~~~~~~~~
!!! error TS2449: Class 'TextBase' used before its declaration.
-!!! related TS2728 tests/cases/compiler/classSideInheritance2.ts:14:7: 'TextBase' was declared here.
+!!! related TS2728 tests/cases/compiler/classSideInheritance2.ts:14:7: 'TextBase' is declared here.
constructor(text: IText, span: TextSpan) {
super();
diff --git a/tests/baselines/reference/classStaticInitializersUsePropertiesBeforeDeclaration.errors.txt b/tests/baselines/reference/classStaticInitializersUsePropertiesBeforeDeclaration.errors.txt
index 6769f633d30..2a67cec6f87 100644
--- a/tests/baselines/reference/classStaticInitializersUsePropertiesBeforeDeclaration.errors.txt
+++ b/tests/baselines/reference/classStaticInitializersUsePropertiesBeforeDeclaration.errors.txt
@@ -10,21 +10,21 @@ tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts(4,
static enumMember = Enum.A;
~~~~
!!! error TS2450: Enum 'Enum' used before its declaration.
-!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:7:6: 'Enum' was declared here.
+!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:7:6: 'Enum' is declared here.
~
!!! error TS2729: Property 'A' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:8:5: 'A' was declared here.
+!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:8:5: 'A' is declared here.
static objLiteralMember = ObjLiteral.A;
~~~~~~~~~~
!!! error TS2448: Block-scoped variable 'ObjLiteral' used before its declaration.
-!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:11:7: 'ObjLiteral' was declared here.
+!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:11:7: 'ObjLiteral' is declared here.
~
!!! error TS2729: Property 'A' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:12:5: 'A' was declared here.
+!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:12:5: 'A' is declared here.
static namespaceMember = Namespace.A;
~
!!! error TS2729: Property 'A' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:16:16: 'A' was declared here.
+!!! related TS2728 tests/cases/compiler/classStaticInitializersUsePropertiesBeforeDeclaration.ts:16:16: 'A' is declared here.
}
enum Enum {
diff --git a/tests/baselines/reference/complexClassRelationships.errors.txt b/tests/baselines/reference/complexClassRelationships.errors.txt
index 90a6ae0a8be..e7de3a08590 100644
--- a/tests/baselines/reference/complexClassRelationships.errors.txt
+++ b/tests/baselines/reference/complexClassRelationships.errors.txt
@@ -6,7 +6,7 @@ tests/cases/compiler/complexClassRelationships.ts(2,23): error TS2449: Class 'Ba
class Derived extends Base {
~~~~
!!! error TS2449: Class 'Base' used before its declaration.
-!!! related TS2728 tests/cases/compiler/complexClassRelationships.ts:13:7: 'Base' was declared here.
+!!! related TS2728 tests/cases/compiler/complexClassRelationships.ts:13:7: 'Base' is declared here.
public static createEmpty(): Derived {
var item = new Derived();
return item;
diff --git a/tests/baselines/reference/computedPropertyNamesWithStaticProperty.errors.txt b/tests/baselines/reference/computedPropertyNamesWithStaticProperty.errors.txt
index 93edb2d90c0..34eee4d30b5 100644
--- a/tests/baselines/reference/computedPropertyNamesWithStaticProperty.errors.txt
+++ b/tests/baselines/reference/computedPropertyNamesWithStaticProperty.errors.txt
@@ -9,17 +9,17 @@ tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticPr
get [C.staticProp]() {
~
!!! error TS2449: Class 'C' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts:1:7: 'C' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts:1:7: 'C' is declared here.
return "hello";
}
set [C.staticProp](x: string) {
~
!!! error TS2449: Class 'C' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts:1:7: 'C' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts:1:7: 'C' is declared here.
var y = x;
}
[C.staticProp]() { }
~
!!! error TS2449: Class 'C' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts:1:7: 'C' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts:1:7: 'C' is declared here.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/constDeclarations-useBeforeDefinition.errors.txt b/tests/baselines/reference/constDeclarations-useBeforeDefinition.errors.txt
index 670ef38c91d..242bb75f503 100644
--- a/tests/baselines/reference/constDeclarations-useBeforeDefinition.errors.txt
+++ b/tests/baselines/reference/constDeclarations-useBeforeDefinition.errors.txt
@@ -7,7 +7,7 @@ tests/cases/compiler/constDeclarations-useBeforeDefinition.ts(8,5): error TS2448
c1;
~~
!!! error TS2448: Block-scoped variable 'c1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/constDeclarations-useBeforeDefinition.ts:3:11: 'c1' was declared here.
+!!! related TS2728 tests/cases/compiler/constDeclarations-useBeforeDefinition.ts:3:11: 'c1' is declared here.
const c1 = 0;
}
@@ -16,7 +16,7 @@ tests/cases/compiler/constDeclarations-useBeforeDefinition.ts(8,5): error TS2448
v1;
~~
!!! error TS2448: Block-scoped variable 'v1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/constDeclarations-useBeforeDefinition.ts:9:11: 'v1' was declared here.
+!!! related TS2728 tests/cases/compiler/constDeclarations-useBeforeDefinition.ts:9:11: 'v1' is declared here.
const v1 = 0;
}
\ No newline at end of file
diff --git a/tests/baselines/reference/constDeclarations-useBeforeDefinition2.errors.txt b/tests/baselines/reference/constDeclarations-useBeforeDefinition2.errors.txt
index df5f88319fd..930cf63358e 100644
--- a/tests/baselines/reference/constDeclarations-useBeforeDefinition2.errors.txt
+++ b/tests/baselines/reference/constDeclarations-useBeforeDefinition2.errors.txt
@@ -5,7 +5,7 @@ tests/cases/compiler/file1.ts(1,1): error TS2448: Block-scoped variable 'c' used
c;
~
!!! error TS2448: Block-scoped variable 'c' used before its declaration.
-!!! related TS2728 tests/cases/compiler/file2.ts:1:7: 'c' was declared here.
+!!! related TS2728 tests/cases/compiler/file2.ts:1:7: 'c' is declared here.
==== tests/cases/compiler/file2.ts (0 errors) ====
const c = 0;
\ No newline at end of file
diff --git a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt
index a55c3af6555..46eaa413c2e 100644
--- a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt
+++ b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.errors.txt
@@ -466,6 +466,7 @@ tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts(261,1): error TS
return this.method1(2);
~~~~~~~
!!! error TS2551: Property 'method1' does not exist on type 'B'. Did you mean 'method2'?
+!!! related TS2728 tests/cases/compiler/constructorWithIncompleteTypeAnnotation.ts:245:16: 'method2' is declared here.
}
}
diff --git a/tests/baselines/reference/derivedClasses.errors.txt b/tests/baselines/reference/derivedClasses.errors.txt
index 24223a374e2..f7bee106d73 100644
--- a/tests/baselines/reference/derivedClasses.errors.txt
+++ b/tests/baselines/reference/derivedClasses.errors.txt
@@ -5,7 +5,7 @@ tests/cases/compiler/derivedClasses.ts(1,19): error TS2449: Class 'Color' used b
class Red extends Color {
~~~~~
!!! error TS2449: Class 'Color' used before its declaration.
-!!! related TS2728 tests/cases/compiler/derivedClasses.ts:8:7: 'Color' was declared here.
+!!! related TS2728 tests/cases/compiler/derivedClasses.ts:8:7: 'Color' is declared here.
public shade() {
var getHue = () => { return this.hue(); };
return getHue() + " red";
diff --git a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment3.errors.txt b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment3.errors.txt
index 34fa5c1f72a..eff1e1a6593 100644
--- a/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment3.errors.txt
+++ b/tests/baselines/reference/destructuringArrayBindingPatternAndAssignment3.errors.txt
@@ -9,11 +9,11 @@ tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAss
const [c, d = c, e = e] = [1]; // error for e = e
~
!!! error TS2448: Block-scoped variable 'e' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts:2:18: 'e' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts:2:18: 'e' is declared here.
const [f, g = f, h = i, i = f] = [1]; // error for h = i
~
!!! error TS2448: Block-scoped variable 'i' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts:3:25: 'i' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment3.ts:3:25: 'i' is declared here.
(function ([a, b = a]) { // ok
})([1]);
diff --git a/tests/baselines/reference/destructuringObjectBindingPatternAndAssignment4.errors.txt b/tests/baselines/reference/destructuringObjectBindingPatternAndAssignment4.errors.txt
index db8b13c3786..54930648be9 100644
--- a/tests/baselines/reference/destructuringObjectBindingPatternAndAssignment4.errors.txt
+++ b/tests/baselines/reference/destructuringObjectBindingPatternAndAssignment4.errors.txt
@@ -11,10 +11,10 @@ tests/cases/conformance/es6/destructuring/destructuringObjectBindingPatternAndAs
e = f, // error
~
!!! error TS2448: Block-scoped variable 'f' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/destructuring/destructuringObjectBindingPatternAndAssignment4.ts:7:5: 'f' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/destructuring/destructuringObjectBindingPatternAndAssignment4.ts:7:5: 'f' is declared here.
f = f // error
~
!!! error TS2448: Block-scoped variable 'f' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/destructuring/destructuringObjectBindingPatternAndAssignment4.ts:7:5: 'f' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/destructuring/destructuringObjectBindingPatternAndAssignment4.ts:7:5: 'f' is declared here.
} = { } as any;
\ No newline at end of file
diff --git a/tests/baselines/reference/destructuringParameterDeclaration4.errors.txt b/tests/baselines/reference/destructuringParameterDeclaration4.errors.txt
index 6cd6c92ca62..d5a0d34e1a1 100644
--- a/tests/baselines/reference/destructuringParameterDeclaration4.errors.txt
+++ b/tests/baselines/reference/destructuringParameterDeclaration4.errors.txt
@@ -48,6 +48,7 @@ tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration4.ts(
a1(...array2); // Error parameter type is (number|string)[]
~~~~~~
!!! error TS2552: Cannot find name 'array2'. Did you mean 'Array'?
+!!! related TS2728 /.ts/lib.es5.d.ts:1298:15: 'Array' is declared here.
a5([1, 2, "string", false, true]); // Error, parameter type is [any, any, [[any]]]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2345: Argument of type '[number, number, string, boolean, boolean]' is not assignable to parameter of type '[any, any, [[any]]]'.
diff --git a/tests/baselines/reference/enumUsedBeforeDeclaration.errors.txt b/tests/baselines/reference/enumUsedBeforeDeclaration.errors.txt
index 0eec10329e7..599774f05c0 100644
--- a/tests/baselines/reference/enumUsedBeforeDeclaration.errors.txt
+++ b/tests/baselines/reference/enumUsedBeforeDeclaration.errors.txt
@@ -5,7 +5,7 @@ tests/cases/compiler/enumUsedBeforeDeclaration.ts(1,18): error TS2450: Enum 'Col
const v: Color = Color.Green;
~~~~~
!!! error TS2450: Enum 'Color' used before its declaration.
-!!! related TS2728 tests/cases/compiler/enumUsedBeforeDeclaration.ts:3:6: 'Color' was declared here.
+!!! related TS2728 tests/cases/compiler/enumUsedBeforeDeclaration.ts:3:6: 'Color' is declared here.
const v2: ConstColor = ConstColor.Green;
enum Color { Red, Green, Blue }
const enum ConstColor { Red, Green, Blue }
diff --git a/tests/baselines/reference/errorMessageOnObjectLiteralType.errors.txt b/tests/baselines/reference/errorMessageOnObjectLiteralType.errors.txt
index 7dffc9053e3..fc6b1e8aa18 100644
--- a/tests/baselines/reference/errorMessageOnObjectLiteralType.errors.txt
+++ b/tests/baselines/reference/errorMessageOnObjectLiteralType.errors.txt
@@ -12,4 +12,5 @@ tests/cases/compiler/errorMessageOnObjectLiteralType.ts(6,8): error TS2551: Prop
!!! error TS2339: Property 'getOwnPropertyNamess' does not exist on type '{ a: string; b: number; }'.
Object.getOwnPropertyNamess(null);
~~~~~~~~~~~~~~~~~~~~
-!!! error TS2551: Property 'getOwnPropertyNamess' does not exist on type 'ObjectConstructor'. Did you mean 'getOwnPropertyNames'?
\ No newline at end of file
+!!! error TS2551: Property 'getOwnPropertyNamess' does not exist on type 'ObjectConstructor'. Did you mean 'getOwnPropertyNames'?
+!!! related TS2728 /.ts/lib.es5.d.ts:179:5: 'getOwnPropertyNames' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.errors.txt b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.errors.txt
index ff7872b14b1..3a8b56fc7e6 100644
--- a/tests/baselines/reference/es5ExportDefaultClassDeclaration3.errors.txt
+++ b/tests/baselines/reference/es5ExportDefaultClassDeclaration3.errors.txt
@@ -5,7 +5,7 @@ tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts(1,21): error TS2449: C
var before: C = new C();
~
!!! error TS2449: Class 'C' used before its declaration.
-!!! related TS2728 tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts:3:22: 'C' was declared here.
+!!! related TS2728 tests/cases/compiler/es5ExportDefaultClassDeclaration3.ts:3:22: 'C' is declared here.
export default class C {
method(): C {
diff --git a/tests/baselines/reference/exactSpellingSuggestion.errors.txt b/tests/baselines/reference/exactSpellingSuggestion.errors.txt
index dbe611590d4..0a36f11f010 100644
--- a/tests/baselines/reference/exactSpellingSuggestion.errors.txt
+++ b/tests/baselines/reference/exactSpellingSuggestion.errors.txt
@@ -13,4 +13,5 @@ tests/cases/compiler/exactSpellingSuggestion.ts(9,4): error TS2551: Property 'bi
U8.bit_2
~~~~~
!!! error TS2551: Property 'bit_2' does not exist on type 'typeof U8'. Did you mean 'BIT_2'?
+!!! related TS2728 tests/cases/compiler/exactSpellingSuggestion.ts:6:5: 'BIT_2' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/exportAssignmentImportMergeNoCrash.errors.txt b/tests/baselines/reference/exportAssignmentImportMergeNoCrash.errors.txt
index 9da5aea324e..222d5267965 100644
--- a/tests/baselines/reference/exportAssignmentImportMergeNoCrash.errors.txt
+++ b/tests/baselines/reference/exportAssignmentImportMergeNoCrash.errors.txt
@@ -21,5 +21,5 @@ tests/cases/compiler/user.ts(3,25): error TS2448: Block-scoped variable 'Obj' us
!!! error TS2395: Individual declarations in merged declaration 'Obj' must be all exported or all local.
~~~
!!! error TS2448: Block-scoped variable 'Obj' used before its declaration.
-!!! related TS2728 tests/cases/compiler/user.ts:3:14: 'Obj' was declared here.
+!!! related TS2728 tests/cases/compiler/user.ts:3:14: 'Obj' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/exportBinding.errors.txt b/tests/baselines/reference/exportBinding.errors.txt
index a0942f183d4..1225ef3aa13 100644
--- a/tests/baselines/reference/exportBinding.errors.txt
+++ b/tests/baselines/reference/exportBinding.errors.txt
@@ -9,7 +9,7 @@ tests/cases/conformance/es6/modules/exportVars.ts(3,16): error TS2454: Variable
export default x;
~
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/modules/exportConsts.ts:5:7: 'x' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/modules/exportConsts.ts:5:7: 'x' is declared here.
~
!!! error TS2454: Variable 'x' is used before being assigned.
diff --git a/tests/baselines/reference/exportSpellingSuggestion.errors.txt b/tests/baselines/reference/exportSpellingSuggestion.errors.txt
index fefae723515..cf8011fec45 100644
--- a/tests/baselines/reference/exportSpellingSuggestion.errors.txt
+++ b/tests/baselines/reference/exportSpellingSuggestion.errors.txt
@@ -10,4 +10,5 @@ tests/cases/conformance/es6/modules/b.ts(1,10): error TS2724: Module '"tests/cas
import { assertNevar } from "./a";
~~~~~~~~~~~
!!! error TS2724: Module '"tests/cases/conformance/es6/modules/a"' has no exported member 'assertNevar'. Did you mean 'assertNever'?
+!!! related TS2728 tests/cases/conformance/es6/modules/a.ts:1:17: 'assertNever' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt b/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt
index 3ff26a942ef..8cdcdd8cc66 100644
--- a/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt
+++ b/tests/baselines/reference/exportedBlockScopedDeclarations.errors.txt
@@ -12,41 +12,41 @@ tests/cases/compiler/exportedBlockScopedDeclarations.ts(16,21): error TS2448: Bl
const foo = foo; // compile error
~~~
!!! error TS2448: Block-scoped variable 'foo' used before its declaration.
-!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:1:7: 'foo' was declared here.
+!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:1:7: 'foo' is declared here.
export const bar = bar; // should be compile error
~~~
!!! error TS2448: Block-scoped variable 'bar' used before its declaration.
-!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:2:14: 'bar' was declared here.
+!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:2:14: 'bar' is declared here.
function f() {
const bar = bar; // compile error
~~~
!!! error TS2448: Block-scoped variable 'bar' used before its declaration.
-!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:4:9: 'bar' was declared here.
+!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:4:9: 'bar' is declared here.
}
namespace NS {
export const bar = bar; // should be compile error
~~~
!!! error TS2448: Block-scoped variable 'bar' used before its declaration.
-!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:7:16: 'bar' was declared here.
+!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:7:16: 'bar' is declared here.
}
let foo1 = foo1; // compile error
~~~~
!!! error TS2448: Block-scoped variable 'foo1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:10:5: 'foo1' was declared here.
+!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:10:5: 'foo1' is declared here.
export let bar1 = bar1; // should be compile error
~~~~
!!! error TS2448: Block-scoped variable 'bar1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:11:12: 'bar1' was declared here.
+!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:11:12: 'bar1' is declared here.
function f1() {
let bar1 = bar1; // compile error
~~~~
!!! error TS2448: Block-scoped variable 'bar1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:13:7: 'bar1' was declared here.
+!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:13:7: 'bar1' is declared here.
}
namespace NS1 {
export let bar1 = bar1; // should be compile error
~~~~
!!! error TS2448: Block-scoped variable 'bar1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:16:14: 'bar1' was declared here.
+!!! related TS2728 tests/cases/compiler/exportedBlockScopedDeclarations.ts:16:14: 'bar1' is declared here.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.errors.txt b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.errors.txt
index a045cfd7d57..c4de998333a 100644
--- a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.errors.txt
+++ b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.errors.txt
@@ -5,6 +5,6 @@ tests/cases/compiler/extendBaseClassBeforeItsDeclared.ts(1,23): error TS2449: Cl
class derived extends base { }
~~~~
!!! error TS2449: Class 'base' used before its declaration.
-!!! related TS2728 tests/cases/compiler/extendBaseClassBeforeItsDeclared.ts:3:7: 'base' was declared here.
+!!! related TS2728 tests/cases/compiler/extendBaseClassBeforeItsDeclared.ts:3:7: 'base' is declared here.
class base { constructor (public n: number) { } }
\ No newline at end of file
diff --git a/tests/baselines/reference/externModule.errors.txt b/tests/baselines/reference/externModule.errors.txt
index d6659c1d548..329ef0a8862 100644
--- a/tests/baselines/reference/externModule.errors.txt
+++ b/tests/baselines/reference/externModule.errors.txt
@@ -69,16 +69,20 @@ tests/cases/compiler/externModule.ts(37,3): error TS2552: Cannot find name 'XDat
var d=new XDate();
~~~~~
!!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
+!!! related TS2728 /.ts/lib.es5.d.ts:837:15: 'Date' is declared here.
d.getDay();
d=new XDate(1978,2);
~~~~~
!!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
+!!! related TS2728 /.ts/lib.es5.d.ts:837:15: 'Date' is declared here.
d.getXDate();
var n=XDate.parse("3/2/2004");
~~~~~
!!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
+!!! related TS2728 /.ts/lib.es5.d.ts:837:15: 'Date' is declared here.
n=XDate.UTC(1964,2,1);
~~~~~
!!! error TS2552: Cannot find name 'XDate'. Did you mean 'Date'?
+!!! related TS2728 /.ts/lib.es5.d.ts:837:15: 'Date' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/for-of55.errors.txt b/tests/baselines/reference/for-of55.errors.txt
index 8740816cf72..74d55636bfe 100644
--- a/tests/baselines/reference/for-of55.errors.txt
+++ b/tests/baselines/reference/for-of55.errors.txt
@@ -6,6 +6,6 @@ tests/cases/conformance/es6/for-ofStatements/for-of55.ts(2,15): error TS2448: Bl
for (let v of v) {
~
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/for-ofStatements/for-of55.ts:2:10: 'v' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/for-ofStatements/for-of55.ts:2:10: 'v' is declared here.
v;
}
\ No newline at end of file
diff --git a/tests/baselines/reference/forwardRefInClassProperties.errors.txt b/tests/baselines/reference/forwardRefInClassProperties.errors.txt
index 36dfec76469..1958791804e 100644
--- a/tests/baselines/reference/forwardRefInClassProperties.errors.txt
+++ b/tests/baselines/reference/forwardRefInClassProperties.errors.txt
@@ -9,13 +9,13 @@ tests/cases/compiler/forwardRefInClassProperties.ts(11,17): error TS2448: Block-
_b = this._a; // undefined, no error/warning
~~
!!! error TS2729: Property '_a' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/forwardRefInClassProperties.ts:4:5: '_a' was declared here.
+!!! related TS2728 tests/cases/compiler/forwardRefInClassProperties.ts:4:5: '_a' is declared here.
_a = 3;
static _B = Test._A; // undefined, no error/warning
~~
!!! error TS2729: Property '_A' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/forwardRefInClassProperties.ts:7:12: '_A' was declared here.
+!!! related TS2728 tests/cases/compiler/forwardRefInClassProperties.ts:7:12: '_A' is declared here.
static _A = 3;
method()
@@ -23,7 +23,7 @@ tests/cases/compiler/forwardRefInClassProperties.ts(11,17): error TS2448: Block-
let a = b; // Property 'b' is used before its initialization.
~
!!! error TS2448: Block-scoped variable 'b' used before its declaration.
-!!! related TS2728 tests/cases/compiler/forwardRefInClassProperties.ts:12:13: 'b' was declared here.
+!!! related TS2728 tests/cases/compiler/forwardRefInClassProperties.ts:12:13: 'b' is declared here.
let b = 3;
}
}
diff --git a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.errors.txt b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.errors.txt
index fe52ced70f2..d11f49bbec9 100644
--- a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.errors.txt
+++ b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.errors.txt
@@ -6,11 +6,11 @@ tests/cases/compiler/genericClassInheritsConstructorFromNonGenericClass.ts(2,20)
class A extends B { }
~
!!! error TS2449: Class 'B' used before its declaration.
-!!! related TS2728 tests/cases/compiler/genericClassInheritsConstructorFromNonGenericClass.ts:2:7: 'B' was declared here.
+!!! related TS2728 tests/cases/compiler/genericClassInheritsConstructorFromNonGenericClass.ts:2:7: 'B' is declared here.
class B extends C { }
~
!!! error TS2449: Class 'C' used before its declaration.
-!!! related TS2728 tests/cases/compiler/genericClassInheritsConstructorFromNonGenericClass.ts:3:7: 'C' was declared here.
+!!! related TS2728 tests/cases/compiler/genericClassInheritsConstructorFromNonGenericClass.ts:3:7: 'C' is declared here.
class C {
constructor(p: string) { }
}
\ No newline at end of file
diff --git a/tests/baselines/reference/indexedAccessImplicitlyAny.errors.txt b/tests/baselines/reference/indexedAccessImplicitlyAny.errors.txt
index ae950b5e69c..70901726b67 100644
--- a/tests/baselines/reference/indexedAccessImplicitlyAny.errors.txt
+++ b/tests/baselines/reference/indexedAccessImplicitlyAny.errors.txt
@@ -8,6 +8,7 @@ tests/cases/compiler/indexedAccessImplicitlyAny.ts(4,3): error TS2551: Property
i.foo;
~~~
!!! error TS2551: Property 'foo' does not exist on type 'I'. Did you mean 'foof'?
+!!! related TS2728 tests/cases/compiler/indexedAccessImplicitlyAny.ts:1:15: 'foof' is declared here.
i["foo"];
~~~~~
!!! error TS2551: Property 'foo' does not exist on type 'I'. Did you mean 'foof'?
\ No newline at end of file
diff --git a/tests/baselines/reference/indirectSelfReference.errors.txt b/tests/baselines/reference/indirectSelfReference.errors.txt
index 5d07a19d849..45ed557244a 100644
--- a/tests/baselines/reference/indirectSelfReference.errors.txt
+++ b/tests/baselines/reference/indirectSelfReference.errors.txt
@@ -9,7 +9,7 @@ tests/cases/compiler/indirectSelfReference.ts(2,7): error TS2506: 'b' is referen
!!! error TS2506: 'a' is referenced directly or indirectly in its own base expression.
~
!!! error TS2449: Class 'b' used before its declaration.
-!!! related TS2728 tests/cases/compiler/indirectSelfReference.ts:2:7: 'b' was declared here.
+!!! related TS2728 tests/cases/compiler/indirectSelfReference.ts:2:7: 'b' is declared here.
class b extends a{ }
~
!!! error TS2506: 'b' is referenced directly or indirectly in its own base expression.
\ No newline at end of file
diff --git a/tests/baselines/reference/indirectSelfReferenceGeneric.errors.txt b/tests/baselines/reference/indirectSelfReferenceGeneric.errors.txt
index 5faf3dd83cc..db0c5d8c975 100644
--- a/tests/baselines/reference/indirectSelfReferenceGeneric.errors.txt
+++ b/tests/baselines/reference/indirectSelfReferenceGeneric.errors.txt
@@ -9,7 +9,7 @@ tests/cases/compiler/indirectSelfReferenceGeneric.ts(2,7): error TS2506: 'b' is
!!! error TS2506: 'a' is referenced directly or indirectly in its own base expression.
~
!!! error TS2449: Class 'b' used before its declaration.
-!!! related TS2728 tests/cases/compiler/indirectSelfReferenceGeneric.ts:2:7: 'b' was declared here.
+!!! related TS2728 tests/cases/compiler/indirectSelfReferenceGeneric.ts:2:7: 'b' is declared here.
class b extends a { }
~
!!! error TS2506: 'b' is referenced directly or indirectly in its own base expression.
\ No newline at end of file
diff --git a/tests/baselines/reference/invalidTypeOfTarget.errors.txt b/tests/baselines/reference/invalidTypeOfTarget.errors.txt
index 04bf724e4b9..b6da9a1eb77 100644
--- a/tests/baselines/reference/invalidTypeOfTarget.errors.txt
+++ b/tests/baselines/reference/invalidTypeOfTarget.errors.txt
@@ -36,6 +36,7 @@ tests/cases/conformance/types/specifyingTypes/typeQueries/invalidTypeOfTarget.ts
var x7: typeof function f() { };
~~~~~~~~
!!! error TS2552: Cannot find name 'function'. Did you mean 'Function'?
+!!! related TS2728 /.ts/lib.es5.d.ts:316:15: 'Function' is declared here.
~
!!! error TS1005: ',' expected.
~
diff --git a/tests/baselines/reference/iterableArrayPattern16.errors.txt b/tests/baselines/reference/iterableArrayPattern16.errors.txt
index 35b1be637d5..b07d8c976a5 100644
--- a/tests/baselines/reference/iterableArrayPattern16.errors.txt
+++ b/tests/baselines/reference/iterableArrayPattern16.errors.txt
@@ -14,7 +14,7 @@ tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts(2,12): error
!!! error TS2345: Property '0' is missing in type 'FooIterator'.
~~~~~~~~~~~~~~~~~~~
!!! error TS2449: Class 'FooIteratorIterator' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts:18:7: 'FooIteratorIterator' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/destructuring/iterableArrayPattern16.ts:18:7: 'FooIteratorIterator' is declared here.
class Bar { x }
class Foo extends Bar { y }
class FooIterator {
diff --git a/tests/baselines/reference/jsFileCompilationLetDeclarationOrder2.errors.txt b/tests/baselines/reference/jsFileCompilationLetDeclarationOrder2.errors.txt
index d1a6361986d..6fc8df18500 100644
--- a/tests/baselines/reference/jsFileCompilationLetDeclarationOrder2.errors.txt
+++ b/tests/baselines/reference/jsFileCompilationLetDeclarationOrder2.errors.txt
@@ -8,7 +8,7 @@ tests/cases/compiler/a.ts(2,1): error TS2448: Block-scoped variable 'a' used bef
a = 10;
~
!!! error TS2448: Block-scoped variable 'a' used before its declaration.
-!!! related TS2728 tests/cases/compiler/b.js:1:5: 'a' was declared here.
+!!! related TS2728 tests/cases/compiler/b.js:1:5: 'a' is declared here.
==== tests/cases/compiler/b.js (0 errors) ====
let a = 10;
b = 30;
diff --git a/tests/baselines/reference/letDeclarations-scopes2.errors.txt b/tests/baselines/reference/letDeclarations-scopes2.errors.txt
index 5da8d99d397..b987e6a5e53 100644
--- a/tests/baselines/reference/letDeclarations-scopes2.errors.txt
+++ b/tests/baselines/reference/letDeclarations-scopes2.errors.txt
@@ -15,6 +15,7 @@ tests/cases/compiler/letDeclarations-scopes2.ts(25,1): error TS2304: Cannot find
local2; // Error
~~~~~~
!!! error TS2552: Cannot find name 'local2'. Did you mean 'local'?
+!!! related TS2728 tests/cases/compiler/letDeclarations-scopes2.ts:4:9: 'local' is declared here.
{
let local2 = 0;
@@ -29,6 +30,7 @@ tests/cases/compiler/letDeclarations-scopes2.ts(25,1): error TS2304: Cannot find
local2; // Error
~~~~~~
!!! error TS2552: Cannot find name 'local2'. Did you mean 'local'?
+!!! related TS2728 tests/cases/compiler/letDeclarations-scopes2.ts:4:9: 'local' is declared here.
}
local; // Error
diff --git a/tests/baselines/reference/letDeclarations-useBeforeDefinition.errors.txt b/tests/baselines/reference/letDeclarations-useBeforeDefinition.errors.txt
index 7be07585a76..f8b0ed9fbd4 100644
--- a/tests/baselines/reference/letDeclarations-useBeforeDefinition.errors.txt
+++ b/tests/baselines/reference/letDeclarations-useBeforeDefinition.errors.txt
@@ -7,7 +7,7 @@ tests/cases/compiler/letDeclarations-useBeforeDefinition.ts(8,5): error TS2448:
l1;
~~
!!! error TS2448: Block-scoped variable 'l1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/letDeclarations-useBeforeDefinition.ts:3:9: 'l1' was declared here.
+!!! related TS2728 tests/cases/compiler/letDeclarations-useBeforeDefinition.ts:3:9: 'l1' is declared here.
let l1;
}
@@ -16,7 +16,7 @@ tests/cases/compiler/letDeclarations-useBeforeDefinition.ts(8,5): error TS2448:
v1;
~~
!!! error TS2448: Block-scoped variable 'v1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/letDeclarations-useBeforeDefinition.ts:9:9: 'v1' was declared here.
+!!! related TS2728 tests/cases/compiler/letDeclarations-useBeforeDefinition.ts:9:9: 'v1' is declared here.
let v1 = 0;
}
\ No newline at end of file
diff --git a/tests/baselines/reference/letDeclarations-useBeforeDefinition2.errors.txt b/tests/baselines/reference/letDeclarations-useBeforeDefinition2.errors.txt
index 8259305a922..6c5bfd04bc6 100644
--- a/tests/baselines/reference/letDeclarations-useBeforeDefinition2.errors.txt
+++ b/tests/baselines/reference/letDeclarations-useBeforeDefinition2.errors.txt
@@ -5,7 +5,7 @@ tests/cases/compiler/file1.ts(1,1): error TS2448: Block-scoped variable 'l' used
l;
~
!!! error TS2448: Block-scoped variable 'l' used before its declaration.
-!!! related TS2728 tests/cases/compiler/file2.ts:1:7: 'l' was declared here.
+!!! related TS2728 tests/cases/compiler/file2.ts:1:7: 'l' is declared here.
==== tests/cases/compiler/file2.ts (0 errors) ====
const l = 0;
\ No newline at end of file
diff --git a/tests/baselines/reference/maximum10SpellingSuggestions.errors.txt b/tests/baselines/reference/maximum10SpellingSuggestions.errors.txt
index 8069d7bd1f5..9528ccec6fb 100644
--- a/tests/baselines/reference/maximum10SpellingSuggestions.errors.txt
+++ b/tests/baselines/reference/maximum10SpellingSuggestions.errors.txt
@@ -19,24 +19,34 @@ tests/cases/compiler/maximum10SpellingSuggestions.ts(5,6): error TS2304: Cannot
bob; bob; bob; bob; bob; bob; bob; bob; bob; bob;
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
~~~
!!! error TS2552: Cannot find name 'bob'. Did you mean 'blob'?
+!!! related TS2728 tests/cases/compiler/maximum10SpellingSuggestions.ts:3:5: 'blob' is declared here.
bob; bob;
~~~
!!! error TS2304: Cannot find name 'bob'.
diff --git a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.errors.txt b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.errors.txt
index f5eda1fcf4a..a77030bd5de 100644
--- a/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.errors.txt
+++ b/tests/baselines/reference/modularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.errors.txt
@@ -41,6 +41,7 @@ tests/cases/compiler/modularizeLibrary_ErrorFromUsingES6FeaturesWithOnlyES5Lib.t
Math.sign(1);
~~~~
!!! error TS2551: Property 'sign' does not exist on type 'Math'. Did you mean 'sin'?
+!!! related TS2728 /.ts/lib.es5.d.ts:643:5: 'sin' is declared here.
// Using ES6 object
var o = {
diff --git a/tests/baselines/reference/narrowExceptionVariableInCatchClause.errors.txt b/tests/baselines/reference/narrowExceptionVariableInCatchClause.errors.txt
index 248d4c35473..699b65a4f64 100644
--- a/tests/baselines/reference/narrowExceptionVariableInCatchClause.errors.txt
+++ b/tests/baselines/reference/narrowExceptionVariableInCatchClause.errors.txt
@@ -16,6 +16,7 @@ tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts(16,17)
err.doPanic(); // ERROR: Property 'doPanic' does not exist on type '{...}'
~~~~~~~
!!! error TS2551: Property 'doPanic' does not exist on type '{ type: "foo"; dontPanic(): any; }'. Did you mean 'dontPanic'?
+!!! related TS2728 tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts:1:58: 'dontPanic' is declared here.
}
else if (err instanceof Error) {
@@ -23,6 +24,7 @@ tests/cases/conformance/types/any/narrowExceptionVariableInCatchClause.ts(16,17)
err.massage; // ERROR: Property 'massage' does not exist on type 'Error'
~~~~~~~
!!! error TS2551: Property 'massage' does not exist on type 'Error'. Did you mean 'message'?
+!!! related TS2728 /.ts/lib.es5.d.ts:904:5: 'message' is declared here.
}
else {
diff --git a/tests/baselines/reference/narrowFromAnyWithInstanceof.errors.txt b/tests/baselines/reference/narrowFromAnyWithInstanceof.errors.txt
index f8465651901..216211b2fa2 100644
--- a/tests/baselines/reference/narrowFromAnyWithInstanceof.errors.txt
+++ b/tests/baselines/reference/narrowFromAnyWithInstanceof.errors.txt
@@ -22,6 +22,7 @@ tests/cases/conformance/types/any/narrowFromAnyWithInstanceof.ts(22,7): error TS
x.mesage;
~~~~~~
!!! error TS2551: Property 'mesage' does not exist on type 'Error'. Did you mean 'message'?
+!!! related TS2728 /.ts/lib.es5.d.ts:904:5: 'message' is declared here.
}
if (x instanceof Date) {
@@ -29,5 +30,6 @@ tests/cases/conformance/types/any/narrowFromAnyWithInstanceof.ts(22,7): error TS
x.getHuors();
~~~~~~~~
!!! error TS2551: Property 'getHuors' does not exist on type 'Date'. Did you mean 'getHours'?
+!!! related TS2728 /.ts/lib.es5.d.ts:693:5: 'getHours' is declared here.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/narrowFromAnyWithTypePredicate.errors.txt b/tests/baselines/reference/narrowFromAnyWithTypePredicate.errors.txt
index 4865748f332..c35d3263b8f 100644
--- a/tests/baselines/reference/narrowFromAnyWithTypePredicate.errors.txt
+++ b/tests/baselines/reference/narrowFromAnyWithTypePredicate.errors.txt
@@ -39,6 +39,7 @@ tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts(33,7): error
x.mesage;
~~~~~~
!!! error TS2551: Property 'mesage' does not exist on type 'Error'. Did you mean 'message'?
+!!! related TS2728 /.ts/lib.es5.d.ts:904:5: 'message' is declared here.
}
if (isDate(x)) {
@@ -46,5 +47,6 @@ tests/cases/conformance/types/any/narrowFromAnyWithTypePredicate.ts(33,7): error
x.getHuors();
~~~~~~~~
!!! error TS2551: Property 'getHuors' does not exist on type 'Date'. Did you mean 'getHours'?
+!!! related TS2728 /.ts/lib.es5.d.ts:693:5: 'getHours' is declared here.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/parameterNamesInTypeParameterList.errors.txt b/tests/baselines/reference/parameterNamesInTypeParameterList.errors.txt
index c4e29ca62f9..59a76c58830 100644
--- a/tests/baselines/reference/parameterNamesInTypeParameterList.errors.txt
+++ b/tests/baselines/reference/parameterNamesInTypeParameterList.errors.txt
@@ -10,18 +10,21 @@ tests/cases/compiler/parameterNamesInTypeParameterList.ts(20,22): error TS2552:
function f0(a: T) {
~
!!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
+!!! related TS2728 tests/cases/compiler/parameterNamesInTypeParameterList.ts:13:7: 'A' is declared here.
a.b;
}
function f1({a}: {a:T}) {
~
!!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
+!!! related TS2728 tests/cases/compiler/parameterNamesInTypeParameterList.ts:13:7: 'A' is declared here.
a.b;
}
function f2([a]: T[]) {
~
!!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
+!!! related TS2728 tests/cases/compiler/parameterNamesInTypeParameterList.ts:13:7: 'A' is declared here.
a.b;
}
@@ -29,16 +32,19 @@ tests/cases/compiler/parameterNamesInTypeParameterList.ts(20,22): error TS2552:
m0(a: T) {
~
!!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
+!!! related TS2728 tests/cases/compiler/parameterNamesInTypeParameterList.ts:13:7: 'A' is declared here.
a.b
}
m1({a}: {a:T}) {
~
!!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
+!!! related TS2728 tests/cases/compiler/parameterNamesInTypeParameterList.ts:13:7: 'A' is declared here.
a.b
}
m2([a]: T[]) {
~
!!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
+!!! related TS2728 tests/cases/compiler/parameterNamesInTypeParameterList.ts:13:7: 'A' is declared here.
a.b
}
}
\ No newline at end of file
diff --git a/tests/baselines/reference/parserMemberAccessAfterPostfixExpression1.errors.txt b/tests/baselines/reference/parserMemberAccessAfterPostfixExpression1.errors.txt
index 6c2a0562a7c..d0db1597607 100644
--- a/tests/baselines/reference/parserMemberAccessAfterPostfixExpression1.errors.txt
+++ b/tests/baselines/reference/parserMemberAccessAfterPostfixExpression1.errors.txt
@@ -10,4 +10,5 @@ tests/cases/conformance/parser/ecmascript5/Expressions/parserMemberAccessAfterPo
~
!!! error TS1005: ';' expected.
~~~~~~~~
-!!! error TS2552: Cannot find name 'toString'. Did you mean 'String'?
\ No newline at end of file
+!!! error TS2552: Cannot find name 'toString'. Did you mean 'String'?
+!!! related TS2728 /.ts/lib.es5.d.ts:457:15: 'String' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/parserRealSource10.errors.txt b/tests/baselines/reference/parserRealSource10.errors.txt
index c7fb3b62f29..a860467f1a7 100644
--- a/tests/baselines/reference/parserRealSource10.errors.txt
+++ b/tests/baselines/reference/parserRealSource10.errors.txt
@@ -475,7 +475,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts(449,41): error
export var tokenTable = new TokenInfo[];
~~~~~~~~~
!!! error TS2449: Class 'TokenInfo' used before its declaration.
-!!! related TS2728 tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts:175:18: 'TokenInfo' was declared here.
+!!! related TS2728 tests/cases/conformance/parser/ecmascript5/parserRealSource10.ts:175:18: 'TokenInfo' is declared here.
!!! error TS1011: An element access expression should take an argument.
export var nodeTypeTable = new string[];
diff --git a/tests/baselines/reference/parserRealSource7.errors.txt b/tests/baselines/reference/parserRealSource7.errors.txt
index a838b0a9594..250b589873b 100644
--- a/tests/baselines/reference/parserRealSource7.errors.txt
+++ b/tests/baselines/reference/parserRealSource7.errors.txt
@@ -328,6 +328,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(828,13): error T
baseTypeLinks = new TypeLink[];
~~~~~~~~
!!! error TS2552: Cannot find name 'TypeLink'. Did you mean 'typeLink'?
+!!! related TS2728 tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts:21:21: 'typeLink' is declared here.
!!! error TS1011: An element access expression should take an argument.
}
@@ -337,6 +338,7 @@ tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts(828,13): error T
var typeLink = new TypeLink();
~~~~~~~~
!!! error TS2552: Cannot find name 'TypeLink'. Did you mean 'typeLink'?
+!!! related TS2728 tests/cases/conformance/parser/ecmascript5/parserRealSource7.ts:21:21: 'typeLink' is declared here.
typeLink.ast = name;
baseTypeLinks[baseTypeLinks.length] = typeLink;
}
diff --git a/tests/baselines/reference/parserS7.2_A1.5_T2.errors.txt b/tests/baselines/reference/parserS7.2_A1.5_T2.errors.txt
index 3d35062bfc2..16a1a9c5ff2 100644
--- a/tests/baselines/reference/parserS7.2_A1.5_T2.errors.txt
+++ b/tests/baselines/reference/parserS7.2_A1.5_T2.errors.txt
@@ -19,6 +19,7 @@ tests/cases/conformance/parser/ecmascript5/parserS7.2_A1.5_T2.ts(20,3): error TS
$ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x));
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
//CHECK#2
@@ -27,6 +28,7 @@ tests/cases/conformance/parser/ecmascript5/parserS7.2_A1.5_T2.ts(20,3): error TS
$ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x));
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
diff --git a/tests/baselines/reference/parserS7.3_A1.1_T2.errors.txt b/tests/baselines/reference/parserS7.3_A1.1_T2.errors.txt
index d4131cc799d..a644e1b6f0d 100644
--- a/tests/baselines/reference/parserS7.3_A1.1_T2.errors.txt
+++ b/tests/baselines/reference/parserS7.3_A1.1_T2.errors.txt
@@ -21,6 +21,7 @@ tests/cases/conformance/parser/ecmascript5/parserS7.3_A1.1_T2.ts(17,3): error TS
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/parserS7.6_A4.2_T1.errors.txt b/tests/baselines/reference/parserS7.6_A4.2_T1.errors.txt
index 53865fd69ab..f29839f43c1 100644
--- a/tests/baselines/reference/parserS7.6_A4.2_T1.errors.txt
+++ b/tests/baselines/reference/parserS7.6_A4.2_T1.errors.txt
@@ -50,60 +50,70 @@ tests/cases/conformance/parser/ecmascript5/parserS7.6_A4.2_T1.ts(142,3): error T
$ERROR('#А');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0411 = 1;
if (Б !== 1) {
$ERROR('#Б');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0412 = 1;
if (В !== 1) {
$ERROR('#В');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0413 = 1;
if (Г !== 1) {
$ERROR('#Г');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0414 = 1;
if (Д !== 1) {
$ERROR('#Д');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0415 = 1;
if (Е !== 1) {
$ERROR('#Е');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0416 = 1;
if (Ж !== 1) {
$ERROR('#Ж');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0417 = 1;
if (З !== 1) {
$ERROR('#З');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0418 = 1;
if (И !== 1) {
$ERROR('#И');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0419 = 1;
if (Й !== 1) {
$ERROR('#Й');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u041A = 1;
if (К !== 1) {
diff --git a/tests/baselines/reference/parserSkippedTokens16.errors.txt b/tests/baselines/reference/parserSkippedTokens16.errors.txt
index 3f0321ed00c..c35e013a228 100644
--- a/tests/baselines/reference/parserSkippedTokens16.errors.txt
+++ b/tests/baselines/reference/parserSkippedTokens16.errors.txt
@@ -12,6 +12,7 @@ tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens16.t
foo(): Bar { }
~~~
!!! error TS2552: Cannot find name 'foo'. Did you mean 'Foo'?
+!!! related TS2728 tests/cases/conformance/parser/ecmascript5/SkippedTokens/parserSkippedTokens16.ts:2:10: 'Foo' is declared here.
~
!!! error TS1005: ';' expected.
~~~
diff --git a/tests/baselines/reference/parserSymbolIndexer5.errors.txt b/tests/baselines/reference/parserSymbolIndexer5.errors.txt
index 7906d08912c..4206fb5a756 100644
--- a/tests/baselines/reference/parserSymbolIndexer5.errors.txt
+++ b/tests/baselines/reference/parserSymbolIndexer5.errors.txt
@@ -15,6 +15,7 @@ tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer5.ts(3,1):
!!! error TS1005: ']' expected.
~~~~~~
!!! error TS2552: Cannot find name 'symbol'. Did you mean 'Symbol'?
+!!! related TS2728 /.ts/lib.es2015.symbol.d.ts:48:13: 'Symbol' is declared here.
~
!!! error TS1005: ',' expected.
~
diff --git a/tests/baselines/reference/parserUnicode1.errors.txt b/tests/baselines/reference/parserUnicode1.errors.txt
index d04e136a534..803119cc3e7 100644
--- a/tests/baselines/reference/parserUnicode1.errors.txt
+++ b/tests/baselines/reference/parserUnicode1.errors.txt
@@ -11,11 +11,13 @@ tests/cases/conformance/parser/ecmascript5/parserUnicode1.ts(10,5): error TS2552
$ERROR('#6.1: var \\u0078x = 1; xx === 6. Actual: ' + (xx));
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
}
catch (e) {
$ERROR('#6.2: var \\u0078x = 1; xx === 6. Actual: ' + (xx));
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.errors.txt b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.errors.txt
index ac888dc2fb1..90193b9f62f 100644
--- a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.errors.txt
+++ b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.errors.txt
@@ -24,12 +24,12 @@ tests/cases/compiler/privacyClassExtendsClauseDeclFile_externalModule.ts(21,83):
class privateClassExtendingFromPrivateModuleClass extends privateModule.publicClassInPrivateModule {
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2449: Class 'publicClassInPrivateModule' used before its declaration.
-!!! related TS2728 tests/cases/compiler/privacyClassExtendsClauseDeclFile_externalModule.ts:26:18: 'publicClassInPrivateModule' was declared here.
+!!! related TS2728 tests/cases/compiler/privacyClassExtendsClauseDeclFile_externalModule.ts:26:18: 'publicClassInPrivateModule' is declared here.
}
export class publicClassExtendingFromPrivateModuleClass extends privateModule.publicClassInPrivateModule { // Should error
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2449: Class 'publicClassInPrivateModule' used before its declaration.
-!!! related TS2728 tests/cases/compiler/privacyClassExtendsClauseDeclFile_externalModule.ts:26:18: 'publicClassInPrivateModule' was declared here.
+!!! related TS2728 tests/cases/compiler/privacyClassExtendsClauseDeclFile_externalModule.ts:26:18: 'publicClassInPrivateModule' is declared here.
}
}
diff --git a/tests/baselines/reference/propertyOrdering.errors.txt b/tests/baselines/reference/propertyOrdering.errors.txt
index f9f638f592d..90db75f8f15 100644
--- a/tests/baselines/reference/propertyOrdering.errors.txt
+++ b/tests/baselines/reference/propertyOrdering.errors.txt
@@ -18,6 +18,7 @@ tests/cases/compiler/propertyOrdering.ts(20,14): error TS2339: Property '_store'
public bar() { return this.store; } // should be an error
~~~~~
!!! error TS2551: Property 'store' does not exist on type 'Foo'. Did you mean '_store'?
+!!! related TS2728 tests/cases/compiler/propertyOrdering.ts:6:14: '_store' is declared here.
}
diff --git a/tests/baselines/reference/propertySignatures.errors.txt b/tests/baselines/reference/propertySignatures.errors.txt
index 60a393aef4d..b99378c6f86 100644
--- a/tests/baselines/reference/propertySignatures.errors.txt
+++ b/tests/baselines/reference/propertySignatures.errors.txt
@@ -24,6 +24,7 @@ tests/cases/compiler/propertySignatures.ts(14,12): error TS2552: Cannot find nam
var test = foo();
~~~
!!! error TS2552: Cannot find name 'foo'. Did you mean 'foo1'?
+!!! related TS2728 tests/cases/compiler/propertySignatures.ts:2:5: 'foo1' is declared here.
// Should be OK
var foo5: {();};
diff --git a/tests/baselines/reference/recursiveBaseCheck3.errors.txt b/tests/baselines/reference/recursiveBaseCheck3.errors.txt
index 12091f9c0e6..2c08a3c44d2 100644
--- a/tests/baselines/reference/recursiveBaseCheck3.errors.txt
+++ b/tests/baselines/reference/recursiveBaseCheck3.errors.txt
@@ -10,7 +10,7 @@ tests/cases/compiler/recursiveBaseCheck3.ts(4,9): error TS2339: Property 'blah'
!!! error TS2506: 'A' is referenced directly or indirectly in its own base expression.
~
!!! error TS2449: Class 'C' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveBaseCheck3.ts:2:7: 'C' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveBaseCheck3.ts:2:7: 'C' is declared here.
class C extends A { }
~
!!! error TS2506: 'C' is referenced directly or indirectly in its own base expression.
diff --git a/tests/baselines/reference/recursiveLetConst.errors.txt b/tests/baselines/reference/recursiveLetConst.errors.txt
index df3fc5fdeb8..9a853945674 100644
--- a/tests/baselines/reference/recursiveLetConst.errors.txt
+++ b/tests/baselines/reference/recursiveLetConst.errors.txt
@@ -15,43 +15,43 @@ tests/cases/compiler/recursiveLetConst.ts(11,11): error TS2448: Block-scoped var
let x = x + 1;
~
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:2:5: 'x' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:2:5: 'x' is declared here.
let [x1] = x1 + 1;
~~
!!! error TS2448: Block-scoped variable 'x1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:3:6: 'x1' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:3:6: 'x1' is declared here.
const y = y + 2;
~
!!! error TS2448: Block-scoped variable 'y' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:4:7: 'y' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:4:7: 'y' is declared here.
const [y1] = y1 + 1;
~~
!!! error TS2448: Block-scoped variable 'y1' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:5:8: 'y1' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:5:8: 'y1' is declared here.
for (let v = v; ; ) { }
~
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:6:10: 'v' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:6:10: 'v' is declared here.
for (let [v] = v; ;) { }
~
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:7:11: 'v' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:7:11: 'v' is declared here.
for (let v in v) { }
~
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:8:10: 'v' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:8:10: 'v' is declared here.
for (let v of v) { }
~
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:9:10: 'v' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:9:10: 'v' is declared here.
for (let [v] of v) { }
~
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:10:11: 'v' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:10:11: 'v' is declared here.
let [x2 = x2] = []
~~
!!! error TS2448: Block-scoped variable 'x2' used before its declaration.
-!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:11:6: 'x2' was declared here.
+!!! related TS2728 tests/cases/compiler/recursiveLetConst.ts:11:6: 'x2' is declared here.
let z0 = () => z0;
let z1 = function () { return z1; }
let z2 = { f() { return z2;}}
\ No newline at end of file
diff --git a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.errors.txt b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.errors.txt
index 5e347bff0c3..6d5605e96fb 100644
--- a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.errors.txt
+++ b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.errors.txt
@@ -29,7 +29,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class caniventer extends Lanthanum.nitidus {
~~~~~~~
!!! error TS2449: Class 'nitidus' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:114:16: 'nitidus' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:114:16: 'nitidus' is declared here.
salomonseni() : caniventer { var x : caniventer; () => { var y = this; }; return x; }
uchidai() : lavali.xanthognathus { var x : lavali.xanthognathus; () => { var y = this; }; return x; }
raffrayana() : lavali.otion { var x : lavali.otion; () => { var y = this; }; return x; }
@@ -39,7 +39,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class veraecrucis extends trivirgatus.mixtus {
~~~~~~
!!! error TS2449: Class 'mixtus' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:199:16: 'mixtus' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:199:16: 'mixtus' is declared here.
naso() : panamensis.setulosus> { var x : panamensis.setulosus>; () => { var y = this; }; return x; }
vancouverensis() : imperfecta.ciliolabrum { var x : imperfecta.ciliolabrum; () => { var y = this; }; return x; }
africana() : argurus.gilbertii, sagitta.cinereus> { var x : argurus.gilbertii, sagitta.cinereus>; () => { var y = this; }; return x; }
@@ -78,7 +78,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class oralis extends caurinus.psilurus {
~~~~~~~~
!!! error TS2449: Class 'psilurus' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:1010:18: 'psilurus' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:1010:18: 'psilurus' is declared here.
cepapi() : caurinus.psilurus { var x : caurinus.psilurus; () => { var y = this; }; return x; }
porteri() : lavali.thaeleri { var x : lavali.thaeleri; () => { var y = this; }; return x; }
bindi() : caurinus.mahaganus> { var x : caurinus.mahaganus>; () => { var y = this; }; return x; }
@@ -96,7 +96,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class sumatrana extends Lanthanum.jugularis {
~~~~~~~~~
!!! error TS2449: Class 'jugularis' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:136:16: 'jugularis' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:136:16: 'jugularis' is declared here.
wolffsohni() : Lanthanum.suillus { var x : Lanthanum.suillus; () => { var y = this; }; return x; }
geata() : ruatanica.hector { var x : ruatanica.hector; () => { var y = this; }; return x; }
awashensis() : petrophilus.minutilla { var x : petrophilus.minutilla; () => { var y = this; }; return x; }
@@ -135,7 +135,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class durangae extends dogramacii.aurata {
~~~~~~
!!! error TS2449: Class 'aurata' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:346:16: 'aurata' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:346:16: 'aurata' is declared here.
Californium() : panamensis.setulosus { var x : panamensis.setulosus; () => { var y = this; }; return x; }
Flerovium() : howi.angulatus { var x : howi.angulatus; () => { var y = this; }; return x; }
phrudus() : sagitta.stolzmanni { var x : sagitta.stolzmanni; () => { var y = this; }; return x; }
@@ -156,7 +156,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class nitidus extends argurus.gilbertii {
~~~~~~~~~
!!! error TS2449: Class 'gilbertii' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:702:18: 'gilbertii' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:702:18: 'gilbertii' is declared here.
granatensis() : quasiater.bobrinskoi { var x : quasiater.bobrinskoi; () => { var y = this; }; return x; }
negligens() : minutus.inez { var x : minutus.inez; () => { var y = this; }; return x; }
lewisi() : julianae.oralis { var x : julianae.oralis; () => { var y = this; }; return x; }
@@ -171,7 +171,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class megalonyx extends caurinus.johorensis {
~~~~~~~~~~
!!! error TS2449: Class 'johorensis' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:979:18: 'johorensis' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:979:18: 'johorensis' is declared here.
phillipsii() : macrorhinos.konganensis { var x : macrorhinos.konganensis; () => { var y = this; }; return x; }
melanogaster() : rionegrensis.veraecrucis { var x : rionegrensis.veraecrucis; () => { var y = this; }; return x; }
elaphus() : nitidus { var x : nitidus; () => { var y = this; }; return x; }
@@ -230,7 +230,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class crenulata extends trivirgatus.falconeri {
~~~~~~~~~
!!! error TS2449: Class 'falconeri' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:212:16: 'falconeri' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:212:16: 'falconeri' is declared here.
salvanius() : howi.coludo { var x : howi.coludo; () => { var y = this; }; return x; }
maritimus() : ruatanica.americanus { var x : ruatanica.americanus; () => { var y = this; }; return x; }
edax() : lutreolus.cor>, rionegrensis.caniventer> { var x : lutreolus.cor>, rionegrensis.caniventer>; () => { var y = this; }; return x; }
@@ -250,7 +250,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class mixtus extends argurus.pygmaea> {
~~~~~~~
!!! error TS2449: Class 'pygmaea' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:598:18: 'pygmaea' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:598:18: 'pygmaea' is declared here.
ochrogaster() : dogramacii.aurata { var x : dogramacii.aurata; () => { var y = this; }; return x; }
bryophilus() : macrorhinos.marmosurus>> { var x : macrorhinos.marmosurus>>; () => { var y = this; }; return x; }
liechtensteini() : rendalli.zuluensis { var x : rendalli.zuluensis; () => { var y = this; }; return x; }
@@ -301,7 +301,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class americanus extends imperfecta.ciliolabrum {
~~~~~~~~~~~
!!! error TS2449: Class 'ciliolabrum' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:809:18: 'ciliolabrum' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:809:18: 'ciliolabrum' is declared here.
nasoloi() : macrorhinos.konganensis { var x : macrorhinos.konganensis; () => { var y = this; }; return x; }
mystacalis() : howi.angulatus { var x : howi.angulatus; () => { var y = this; }; return x; }
fardoulisi() : trivirgatus.oconnelli { var x : trivirgatus.oconnelli; () => { var y = this; }; return x; }
@@ -329,7 +329,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class otion extends howi.coludo {
~~~~~~
!!! error TS2449: Class 'coludo' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:889:18: 'coludo' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:889:18: 'coludo' is declared here.
bonaerensis() : provocax.melanoleuca { var x : provocax.melanoleuca; () => { var y = this; }; return x; }
dussumieri() : nigra.gracilis { var x : nigra.gracilis; () => { var y = this; }; return x; }
osvaldoreigi() : julianae.albidens { var x : julianae.albidens; () => { var y = this; }; return x; }
@@ -361,7 +361,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class thaeleri extends argurus.oreas {
~~~~~
!!! error TS2449: Class 'oreas' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:627:18: 'oreas' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:627:18: 'oreas' is declared here.
coromandra() : julianae.galapagoensis { var x : julianae.galapagoensis; () => { var y = this; }; return x; }
parvipes() : nigra.dolichurus { var x : nigra.dolichurus; () => { var y = this; }; return x; }
sponsorius() : rionegrensis.veraecrucis, julianae.steerii> { var x : rionegrensis.veraecrucis, julianae.steerii>; () => { var y = this; }; return x; }
@@ -466,7 +466,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class amphibius extends caurinus.johorensis, Lanthanum.jugularis> {
~~~~~~~~~~
!!! error TS2449: Class 'johorensis' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:979:18: 'johorensis' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:979:18: 'johorensis' is declared here.
bottegi(): macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni> { var x: macrorhinos.marmosurus, gabriellae.echinatus>, sagitta.stolzmanni>; () => { var y = this; }; return x; }
jerdoni(): macrorhinos.daphaenodon { var x: macrorhinos.daphaenodon; () => { var y = this; }; return x; }
camtschatica(): samarensis.pallidus { var x: samarensis.pallidus; () => { var y = this; }; return x; }
@@ -502,7 +502,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class himalayana extends lutreolus.punicus {
~~~~~~~
!!! error TS2449: Class 'punicus' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:722:18: 'punicus' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:722:18: 'punicus' is declared here.
simoni(): argurus.netscheri> { var x: argurus.netscheri>; () => { var y = this; }; return x; }
lobata(): samarensis.pallidus { var x: samarensis.pallidus; () => { var y = this; }; return x; }
rusticus(): dogramacii.aurata { var x: dogramacii.aurata; () => { var y = this; }; return x; }
@@ -538,7 +538,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class angulatus extends sagitta.stolzmanni {
~~~~~~~~~~
!!! error TS2449: Class 'stolzmanni' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:901:18: 'stolzmanni' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:901:18: 'stolzmanni' is declared here.
pennatus(): howi.marcanoi { var x: howi.marcanoi; () => { var y = this; }; return x; }
}
}
@@ -562,7 +562,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class walkeri extends minutus.portoricensis {
~~~~~~~~~~~~~
!!! error TS2449: Class 'portoricensis' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:851:18: 'portoricensis' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:851:18: 'portoricensis' is declared here.
maracajuensis(): samarensis.cahirinus { var x: samarensis.cahirinus; () => { var y = this; }; return x; }
}
}
@@ -570,7 +570,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class inez extends samarensis.pelurus {
~~~~~~~
!!! error TS2449: Class 'pelurus' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:534:18: 'pelurus' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:534:18: 'pelurus' is declared here.
vexillaris(): samarensis.cahirinus { var x: samarensis.cahirinus; () => { var y = this; }; return x; }
}
}
@@ -578,7 +578,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class konganensis extends imperfecta.lasiurus {
~~~~~~~~
!!! error TS2449: Class 'lasiurus' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:788:18: 'lasiurus' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:788:18: 'lasiurus' is declared here.
}
}
module panamensis {
@@ -615,7 +615,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class pelurus extends sagitta.stolzmanni {
~~~~~~~~~~
!!! error TS2449: Class 'stolzmanni' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:901:18: 'stolzmanni' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:901:18: 'stolzmanni' is declared here.
Palladium(): panamensis.linulus { var x: panamensis.linulus; () => { var y = this; }; return x; }
castanea(): argurus.netscheri, julianae.oralis> { var x: argurus.netscheri, julianae.oralis>; () => { var y = this; }; return x; }
chamek(): argurus.pygmaea { var x: argurus.pygmaea; () => { var y = this; }; return x; }
@@ -633,7 +633,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class fuscus extends macrorhinos.daphaenodon {
~~~~~~~~~~~
!!! error TS2449: Class 'daphaenodon' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:739:18: 'daphaenodon' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:739:18: 'daphaenodon' is declared here.
planifrons(): nigra.gracilis { var x: nigra.gracilis; () => { var y = this; }; return x; }
badia(): julianae.sumatrana { var x: julianae.sumatrana; () => { var y = this; }; return x; }
prymnolopha(): sagitta.walkeri { var x: sagitta.walkeri; () => { var y = this; }; return x; }
@@ -667,7 +667,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class leptoceros extends caurinus.johorensis> {
~~~~~~~~~~
!!! error TS2449: Class 'johorensis' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:979:18: 'johorensis' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:979:18: 'johorensis' is declared here.
victus(): rionegrensis.caniventer { var x: rionegrensis.caniventer; () => { var y = this; }; return x; }
hoplomyoides(): panglima.fundatus, nigra.gracilis> { var x: panglima.fundatus, nigra.gracilis>; () => { var y = this; }; return x; }
gratiosus(): lavali.lepturus { var x: lavali.lepturus; () => { var y = this; }; return x; }
@@ -679,7 +679,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class nigricans extends sagitta.stolzmanni {
~~~~~~~~~~
!!! error TS2449: Class 'stolzmanni' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:901:18: 'stolzmanni' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:901:18: 'stolzmanni' is declared here.
woosnami(): dogramacii.robustulus { var x: dogramacii.robustulus; () => { var y = this; }; return x; }
}
}
@@ -698,7 +698,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class sarasinorum extends caurinus.psilurus {
~~~~~~~~
!!! error TS2449: Class 'psilurus' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:1010:18: 'psilurus' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:1010:18: 'psilurus' is declared here.
belzebul(): samarensis.pallidus { var x: samarensis.pallidus; () => { var y = this; }; return x; }
hinpoon(): nigra.caucasica { var x: nigra.caucasica; () => { var y = this; }; return x; }
kandti(): quasiater.wattsi { var x: quasiater.wattsi; () => { var y = this; }; return x; }
@@ -865,7 +865,7 @@ tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts(769,53
export class klossii extends imperfecta.lasiurus {
~~~~~~~~
!!! error TS2449: Class 'lasiurus' used before its declaration.
-!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:788:18: 'lasiurus' was declared here.
+!!! related TS2728 tests/cases/compiler/resolvingClassDeclarationWhenInBaseTypeResolution.ts:788:18: 'lasiurus' is declared here.
}
export class amicus {
pirrensis(): argurus.luctuosa { var x: argurus.luctuosa; () => { var y = this; }; return x; }
diff --git a/tests/baselines/reference/scannerS7.2_A1.5_T2.errors.txt b/tests/baselines/reference/scannerS7.2_A1.5_T2.errors.txt
index 97d580c9b4b..da25f2199cf 100644
--- a/tests/baselines/reference/scannerS7.2_A1.5_T2.errors.txt
+++ b/tests/baselines/reference/scannerS7.2_A1.5_T2.errors.txt
@@ -19,6 +19,7 @@ tests/cases/conformance/scanner/ecmascript5/scannerS7.2_A1.5_T2.ts(20,3): error
$ERROR('#1: eval("\\u00A0var x\\u00A0= 1\\u00A0"); x === 1. Actual: ' + (x));
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
//CHECK#2
@@ -27,6 +28,7 @@ tests/cases/conformance/scanner/ecmascript5/scannerS7.2_A1.5_T2.ts(20,3): error
$ERROR('#2: var x = 1 ; x === 1. Actual: ' + (x));
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
diff --git a/tests/baselines/reference/scannerS7.3_A1.1_T2.errors.txt b/tests/baselines/reference/scannerS7.3_A1.1_T2.errors.txt
index 186427f5de9..4bfaf868f6d 100644
--- a/tests/baselines/reference/scannerS7.3_A1.1_T2.errors.txt
+++ b/tests/baselines/reference/scannerS7.3_A1.1_T2.errors.txt
@@ -21,6 +21,7 @@ tests/cases/conformance/scanner/ecmascript5/scannerS7.3_A1.1_T2.ts(17,3): error
$ERROR('#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ' + (x));
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
\ No newline at end of file
diff --git a/tests/baselines/reference/scannerS7.6_A4.2_T1.errors.txt b/tests/baselines/reference/scannerS7.6_A4.2_T1.errors.txt
index 0213122e54f..1ff3ea85676 100644
--- a/tests/baselines/reference/scannerS7.6_A4.2_T1.errors.txt
+++ b/tests/baselines/reference/scannerS7.6_A4.2_T1.errors.txt
@@ -50,60 +50,70 @@ tests/cases/conformance/scanner/ecmascript5/scannerS7.6_A4.2_T1.ts(142,3): error
$ERROR('#А');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0411 = 1;
if (Б !== 1) {
$ERROR('#Б');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0412 = 1;
if (В !== 1) {
$ERROR('#В');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0413 = 1;
if (Г !== 1) {
$ERROR('#Г');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0414 = 1;
if (Д !== 1) {
$ERROR('#Д');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0415 = 1;
if (Е !== 1) {
$ERROR('#Е');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0416 = 1;
if (Ж !== 1) {
$ERROR('#Ж');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0417 = 1;
if (З !== 1) {
$ERROR('#З');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0418 = 1;
if (И !== 1) {
$ERROR('#И');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u0419 = 1;
if (Й !== 1) {
$ERROR('#Й');
~~~~~~
!!! error TS2552: Cannot find name '$ERROR'. Did you mean 'Error'?
+!!! related TS2728 /.ts/lib.es5.d.ts:914:15: 'Error' is declared here.
}
var \u041A = 1;
if (К !== 1) {
diff --git a/tests/baselines/reference/scopeCheckStaticInitializer.errors.txt b/tests/baselines/reference/scopeCheckStaticInitializer.errors.txt
index bcc49651720..416fe203b89 100644
--- a/tests/baselines/reference/scopeCheckStaticInitializer.errors.txt
+++ b/tests/baselines/reference/scopeCheckStaticInitializer.errors.txt
@@ -9,20 +9,20 @@ tests/cases/compiler/scopeCheckStaticInitializer.ts(6,23): error TS2449: Class '
static illegalBeforeProperty = X.data;
~~~~
!!! error TS2729: Property 'data' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/scopeCheckStaticInitializer.ts:7:12: 'data' was declared here.
+!!! related TS2728 tests/cases/compiler/scopeCheckStaticInitializer.ts:7:12: 'data' is declared here.
static okBeforeMethod = X.method;
static illegal2 = After.data;
~~~~~
!!! error TS2449: Class 'After' used before its declaration.
-!!! related TS2728 tests/cases/compiler/scopeCheckStaticInitializer.ts:10:7: 'After' was declared here.
+!!! related TS2728 tests/cases/compiler/scopeCheckStaticInitializer.ts:10:7: 'After' is declared here.
~~~~
!!! error TS2729: Property 'data' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/scopeCheckStaticInitializer.ts:11:12: 'data' was declared here.
+!!! related TS2728 tests/cases/compiler/scopeCheckStaticInitializer.ts:11:12: 'data' is declared here.
static illegal3 = After.method;
~~~~~
!!! error TS2449: Class 'After' used before its declaration.
-!!! related TS2728 tests/cases/compiler/scopeCheckStaticInitializer.ts:10:7: 'After' was declared here.
+!!! related TS2728 tests/cases/compiler/scopeCheckStaticInitializer.ts:10:7: 'After' is declared here.
static data = 13;
static method() { }
}
diff --git a/tests/baselines/reference/spellingSuggestionLeadingUnderscores01.errors.txt b/tests/baselines/reference/spellingSuggestionLeadingUnderscores01.errors.txt
index 39a4901da98..b138f3dbe0d 100644
--- a/tests/baselines/reference/spellingSuggestionLeadingUnderscores01.errors.txt
+++ b/tests/baselines/reference/spellingSuggestionLeadingUnderscores01.errors.txt
@@ -12,6 +12,7 @@ tests/cases/compiler/spellingSuggestionLeadingUnderscores01.ts(14,5): error TS23
a.___foo
~~~~~~
!!! error TS2551: Property '___foo' does not exist on type '{ __foo: 10; }'. Did you mean '__foo'?
+!!! related TS2728 tests/cases/compiler/spellingSuggestionLeadingUnderscores01.ts:3:5: '__foo' is declared here.
// @filename def.ts
export let b: {
diff --git a/tests/baselines/reference/spellingSuggestionModule.errors.txt b/tests/baselines/reference/spellingSuggestionModule.errors.txt
index 5333bcc4cc4..13a84599cb1 100644
--- a/tests/baselines/reference/spellingSuggestionModule.errors.txt
+++ b/tests/baselines/reference/spellingSuggestionModule.errors.txt
@@ -18,4 +18,5 @@ tests/cases/compiler/spellingSuggestionModule.ts(8,1): error TS2552: Cannot find
faroo;
~~~~~
!!! error TS2552: Cannot find name 'faroo'. Did you mean 'farboo'?
+!!! related TS2728 tests/cases/compiler/spellingSuggestionModule.ts:7:16: 'farboo' is declared here.
\ No newline at end of file
diff --git a/tests/baselines/reference/strictModeReservedWord.errors.txt b/tests/baselines/reference/strictModeReservedWord.errors.txt
index 87f73c5780a..6ddfbe32874 100644
--- a/tests/baselines/reference/strictModeReservedWord.errors.txt
+++ b/tests/baselines/reference/strictModeReservedWord.errors.txt
@@ -134,6 +134,7 @@ tests/cases/compiler/strictModeReservedWord.ts(24,5): error TS2349: Cannot invok
ublic();
~~~~~
!!! error TS2552: Cannot find name 'ublic'. Did you mean 'public'?
+!!! related TS2728 tests/cases/compiler/strictModeReservedWord.ts:5:9: 'public' is declared here.
static();
~~~~~~
!!! error TS1212: Identifier expected. 'static' is a reserved word in strict mode.
diff --git a/tests/baselines/reference/symbolProperty33.errors.txt b/tests/baselines/reference/symbolProperty33.errors.txt
index 0b6672903f5..5c23a80f8ca 100644
--- a/tests/baselines/reference/symbolProperty33.errors.txt
+++ b/tests/baselines/reference/symbolProperty33.errors.txt
@@ -6,7 +6,7 @@ tests/cases/conformance/es6/Symbols/symbolProperty33.ts(7,6): error TS1023: An i
class C1 extends C2 {
~~
!!! error TS2449: Class 'C2' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/Symbols/symbolProperty33.ts:6:7: 'C2' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/Symbols/symbolProperty33.ts:6:7: 'C2' is declared here.
[Symbol.toStringTag]() {
return { x: "" };
}
diff --git a/tests/baselines/reference/symbolProperty34.errors.txt b/tests/baselines/reference/symbolProperty34.errors.txt
index b7aae39174b..bd909ae3b68 100644
--- a/tests/baselines/reference/symbolProperty34.errors.txt
+++ b/tests/baselines/reference/symbolProperty34.errors.txt
@@ -6,7 +6,7 @@ tests/cases/conformance/es6/Symbols/symbolProperty34.ts(7,6): error TS1023: An i
class C1 extends C2 {
~~
!!! error TS2449: Class 'C2' used before its declaration.
-!!! related TS2728 tests/cases/conformance/es6/Symbols/symbolProperty34.ts:6:7: 'C2' was declared here.
+!!! related TS2728 tests/cases/conformance/es6/Symbols/symbolProperty34.ts:6:7: 'C2' is declared here.
[Symbol.toStringTag]() {
return { x: "" };
}
diff --git a/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution3_ES6.errors.txt b/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution3_ES6.errors.txt
index 24be0fa24f4..76a6186cdda 100644
--- a/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution3_ES6.errors.txt
+++ b/tests/baselines/reference/taggedTemplateStringsWithOverloadResolution3_ES6.errors.txt
@@ -88,6 +88,7 @@ tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolutio
fn5 `${ (n) => n.toFixed() }`; // will error; 'n' should have type 'string'.
~~~~~~~
!!! error TS2551: Property 'toFixed' does not exist on type 'string'. Did you mean 'fixed'?
+!!! related TS2728 /.ts/lib.es2015.core.d.ts:466:5: 'fixed' is declared here.
fn5 `${ (n) => n.substr(0) }`;
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt
index 0bdb19c5db9..c8175f280d5 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.errors.txt
@@ -34,6 +34,7 @@ tests/cases/conformance/jsx/file.tsx(35,26): error TS2339: Property 'propertyNot
let e = x.greeting.subtr(10)} />;
~~~~~
!!! error TS2551: Property 'subtr' does not exist on type 'string'. Did you mean 'substr'?
+!!! related TS2728 /.lib/lib.d.ts:438:5: 'substr' is declared here.
// Error (ref callback is contextually typed)
let f = x.notARealProperty} />;
~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/typeGuardFunctionErrors.errors.txt b/tests/baselines/reference/typeGuardFunctionErrors.errors.txt
index 4be44cc799a..13374b71236 100644
--- a/tests/baselines/reference/typeGuardFunctionErrors.errors.txt
+++ b/tests/baselines/reference/typeGuardFunctionErrors.errors.txt
@@ -166,6 +166,7 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(166,54
a.propB;
~~~~~
!!! error TS2551: Property 'propB' does not exist on type 'A'. Did you mean 'propA'?
+!!! related TS2728 tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts:2:5: 'propA' is declared here.
}
// Parameter index and argument index for the type guard target is not matching.
@@ -173,6 +174,7 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(166,54
a.propB; // Error
~~~~~
!!! error TS2551: Property 'propB' does not exist on type 'A'. Did you mean 'propA'?
+!!! related TS2728 tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts:2:5: 'propA' is declared here.
}
// No type guard in if statement
@@ -180,6 +182,7 @@ tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts(166,54
a.propB;
~~~~~
!!! error TS2551: Property 'propB' does not exist on type 'A'. Did you mean 'propA'?
+!!! related TS2728 tests/cases/conformance/expressions/typeGuards/typeGuardFunctionErrors.ts:2:5: 'propA' is declared here.
}
// Type predicate type is not assignable
diff --git a/tests/baselines/reference/typeGuardsWithInstanceOfByConstructorSignature.errors.txt b/tests/baselines/reference/typeGuardsWithInstanceOfByConstructorSignature.errors.txt
index b93be614f74..a15eed1a868 100644
--- a/tests/baselines/reference/typeGuardsWithInstanceOfByConstructorSignature.errors.txt
+++ b/tests/baselines/reference/typeGuardsWithInstanceOfByConstructorSignature.errors.txt
@@ -258,9 +258,11 @@ tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOfByConstru
obj16.foo1;
~~~~
!!! error TS2551: Property 'foo1' does not exist on type 'H'. Did you mean 'foo'?
+!!! related TS2728 tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOfByConstructorSignature.ts:175:5: 'foo' is declared here.
obj16.foo2;
~~~~
!!! error TS2551: Property 'foo2' does not exist on type 'H'. Did you mean 'foo'?
+!!! related TS2728 tests/cases/conformance/expressions/typeGuards/typeGuardsWithInstanceOfByConstructorSignature.ts:175:5: 'foo' is declared here.
}
var obj17: any;
diff --git a/tests/baselines/reference/typeParametersAndParametersInComputedNames.errors.txt b/tests/baselines/reference/typeParametersAndParametersInComputedNames.errors.txt
index f01f7520cba..36dfa00cf53 100644
--- a/tests/baselines/reference/typeParametersAndParametersInComputedNames.errors.txt
+++ b/tests/baselines/reference/typeParametersAndParametersInComputedNames.errors.txt
@@ -13,5 +13,6 @@ tests/cases/compiler/typeParametersAndParametersInComputedNames.ts(6,13): error
!!! error TS2304: Cannot find name 'T'.
~
!!! error TS2552: Cannot find name 'a'. Did you mean 'A'?
+!!! related TS2728 tests/cases/compiler/typeParametersAndParametersInComputedNames.ts:5:7: 'A' is declared here.
}
}
\ No newline at end of file
diff --git a/tests/baselines/reference/useBeforeDeclaration_propertyAssignment.errors.txt b/tests/baselines/reference/useBeforeDeclaration_propertyAssignment.errors.txt
index cf5699de374..e58e7fa02e9 100644
--- a/tests/baselines/reference/useBeforeDeclaration_propertyAssignment.errors.txt
+++ b/tests/baselines/reference/useBeforeDeclaration_propertyAssignment.errors.txt
@@ -6,7 +6,7 @@ tests/cases/compiler/useBeforeDeclaration_propertyAssignment.ts(2,27): error TS2
public a = { b: this.b };
~
!!! error TS2729: Property 'b' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/useBeforeDeclaration_propertyAssignment.ts:3:13: 'b' was declared here.
+!!! related TS2728 tests/cases/compiler/useBeforeDeclaration_propertyAssignment.ts:3:13: 'b' is declared here.
private b = 0;
}
\ No newline at end of file
diff --git a/tests/baselines/reference/useBeforeDeclaration_superClass.errors.txt b/tests/baselines/reference/useBeforeDeclaration_superClass.errors.txt
index 869812bc0e5..50ccb0afa77 100644
--- a/tests/baselines/reference/useBeforeDeclaration_superClass.errors.txt
+++ b/tests/baselines/reference/useBeforeDeclaration_superClass.errors.txt
@@ -29,7 +29,7 @@ tests/cases/compiler/useBeforeDeclaration_superClass.ts(25,18): error TS2729: Pr
old_x = this.x;
~
!!! error TS2729: Property 'x' is used before its initialization.
-!!! related TS2728 tests/cases/compiler/useBeforeDeclaration_superClass.ts:26:5: 'x' was declared here.
+!!! related TS2728 tests/cases/compiler/useBeforeDeclaration_superClass.ts:26:5: 'x' is declared here.
x = 1;
}
\ No newline at end of file