Skip to content

Commit 7f67328

Browse files
Accepted baselines
1 parent 5afc8fd commit 7f67328

File tree

89 files changed

+205
-118
lines changed

Some content is hidden

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

89 files changed

+205
-118
lines changed

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

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

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

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

tests/baselines/reference/ModuleAndClassWithSameNameAndCommonRoot.errors.txt

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

3838
// duplicate identifier

tests/baselines/reference/ModuleWithExportedAndNonExportedFunctions.errors.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAnd
3535
!!! error TS2339: Property 'fn2' does not exist on type 'typeof A'.
3636
var fng2 = A.fng2;
3737
~~~~
38-
!!! error TS2551: Property 'fng2' does not exist on type 'typeof A'. Did you mean 'fng'?
38+
!!! error TS2551: Property 'fng2' does not exist on type 'typeof A'. Did you mean 'fng'?
39+
!!! related TS2728 tests/cases/conformance/internalModules/exportDeclarations/ModuleWithExportedAndNonExportedFunctions.ts:7:21: 'fng' is declared here.

tests/baselines/reference/anonymousClassExpression2.errors.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ tests/cases/compiler/anonymousClassExpression2.ts(13,18): error TS2551: Property
1717
this.methodA; // error
1818
~~~~~~~
1919
!!! error TS2551: Property 'methodA' does not exist on type 'B'. Did you mean 'methodB'?
20+
!!! related TS2728 tests/cases/compiler/anonymousClassExpression2.ts:12:9: 'methodB' is declared here.
2021
this.methodB; // ok
2122
}
2223
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5430,7 +5430,7 @@ declare namespace ts {
54305430
Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: DiagnosticMessage;
54315431
Cannot_find_lib_definition_for_0: DiagnosticMessage;
54325432
Cannot_find_lib_definition_for_0_Did_you_mean_1: DiagnosticMessage;
5433-
_0_was_declared_here: DiagnosticMessage;
5433+
_0_is_declared_here: DiagnosticMessage;
54345434
Property_0_is_used_before_its_initialization: DiagnosticMessage;
54355435
Import_declaration_0_is_using_private_name_1: DiagnosticMessage;
54365436
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: DiagnosticMessage;

tests/baselines/reference/assignmentRestElementWithErrorSourceType.errors.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ tests/cases/compiler/assignmentRestElementWithErrorSourceType.ts(2,10): error TS
88
~
99
!!! error TS2304: Cannot find name 'c'.
1010
~~~~~
11-
!!! error TS2552: Cannot find name 'tupel'. Did you mean 'tuple'?
11+
!!! error TS2552: Cannot find name 'tupel'. Did you mean 'tuple'?
12+
!!! related TS2728 tests/cases/compiler/assignmentRestElementWithErrorSourceType.ts:1:5: 'tuple' is declared here.

tests/baselines/reference/baseCheck.errors.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ tests/cases/compiler/baseCheck.ts(26,9): error TS2304: Cannot find name 'x'.
2121
super(0, loc);
2222
~~~
2323
!!! error TS2552: Cannot find name 'loc'. Did you mean 'ELoc'?
24+
!!! related TS2728 tests/cases/compiler/baseCheck.ts:2:7: 'ELoc' is declared here.
2425
}
2526

2627
m() {

tests/baselines/reference/blockScopedBindingUsedBeforeDef.errors.txt

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

1313
// 2:
1414
for (let {[a]: a} = { }; false; ) continue;
1515
~
1616
!!! error TS2448: Block-scoped variable 'a' used before its declaration.
17-
!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:5:16: 'a' was declared here.
17+
!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:5:16: 'a' is declared here.
1818

1919
// 3:
2020
let {[b]: b} = { };
2121
~
2222
!!! error TS2448: Block-scoped variable 'b' used before its declaration.
23-
!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:8:11: 'b' was declared here.
23+
!!! related TS2728 tests/cases/compiler/blockScopedBindingUsedBeforeDef.ts:8:11: 'b' is declared here.

tests/baselines/reference/blockScopedVariablesUseBeforeDef.errors.txt

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

@@ -68,7 +68,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
6868
static a = x;
6969
~
7070
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
71-
!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:60:9: 'x' was declared here.
71+
!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:60:9: 'x' is declared here.
7272
}
7373
let x;
7474
}
@@ -78,7 +78,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
7878
static a = x;
7979
~
8080
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
81-
!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:67:9: 'x' was declared here.
81+
!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:67:9: 'x' is declared here.
8282
}
8383
let x;
8484
}
@@ -116,7 +116,7 @@ tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts(100,12): error TS2448:
116116
a: x
117117
~
118118
!!! error TS2448: Block-scoped variable 'x' used before its declaration.
119-
!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:102:9: 'x' was declared here.
119+
!!! related TS2728 tests/cases/compiler/blockScopedVariablesUseBeforeDef.ts:102:9: 'x' is declared here.
120120
}
121121
let x
122122
}

0 commit comments

Comments
 (0)