Skip to content

Commit 8065654

Browse files
Accepted baselines.
1 parent e980f46 commit 8065654

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/accessInstanceMemberFromStaticMethod01.ts(5,17): error TS2304: Cannot find name 'foo'.
1+
tests/cases/compiler/accessInstanceMemberFromStaticMethod01.ts(5,17): error TS2662: Cannot find name 'foo'. Did you mean the static member 'C.foo'?
22

33

44
==== tests/cases/compiler/accessInstanceMemberFromStaticMethod01.ts (1 errors) ====
@@ -8,6 +8,6 @@ tests/cases/compiler/accessInstanceMemberFromStaticMethod01.ts(5,17): error TS23
88
bar() {
99
let k = foo;
1010
~~~
11-
!!! error TS2304: Cannot find name 'foo'.
11+
!!! error TS2662: Cannot find name 'foo'. Did you mean the static member 'C.foo'?
1212
}
1313
}

tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts(4,7): error TS2663: Cannot find name 'v'. Did you mean the instance member 'this.v'?
2-
tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts(6,7): error TS2304: Cannot find name 's'.
2+
tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts(6,7): error TS2662: Cannot find name 's'. Did you mean the static member 'D.s'?
33

44

55
==== tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts (2 errors) ====
@@ -12,6 +12,6 @@ tests/cases/compiler/scopeCheckExtendedClassInsidePublicMethod2.ts(6,7): error T
1212
this.p = 1;
1313
s = 1;
1414
~
15-
!!! error TS2304: Cannot find name 's'.
15+
!!! error TS2662: Cannot find name 's'. Did you mean the static member 'D.s'?
1616
}
1717
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/scopeCheckInsidePublicMethod1.ts(4,7): error TS2304: Cannot find name 's'.
1+
tests/cases/compiler/scopeCheckInsidePublicMethod1.ts(4,7): error TS2662: Cannot find name 's'. Did you mean the static member 'C.s'?
22

33

44
==== tests/cases/compiler/scopeCheckInsidePublicMethod1.ts (1 errors) ====
@@ -7,6 +7,6 @@ tests/cases/compiler/scopeCheckInsidePublicMethod1.ts(4,7): error TS2304: Cannot
77
public a() {
88
s = 1; // ERR
99
~
10-
!!! error TS2304: Cannot find name 's'.
10+
!!! error TS2662: Cannot find name 's'. Did you mean the static member 'C.s'?
1111
}
1212
}

tests/baselines/reference/staticClassMemberError.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/compiler/staticClassMemberError.ts(4,3): error TS2304: Cannot find name 's'.
1+
tests/cases/compiler/staticClassMemberError.ts(4,3): error TS2662: Cannot find name 's'. Did you mean the static member 'C.s'?
22
tests/cases/compiler/staticClassMemberError.ts(9,10): error TS2300: Duplicate identifier 'Foo'.
33
tests/cases/compiler/staticClassMemberError.ts(9,10): error TS2391: Function implementation is missing or not immediately following the declaration.
44
tests/cases/compiler/staticClassMemberError.ts(10,7): error TS2300: Duplicate identifier 'Foo'.
@@ -10,7 +10,7 @@ tests/cases/compiler/staticClassMemberError.ts(10,7): error TS2300: Duplicate id
1010
public a() {
1111
s = 1;
1212
~
13-
!!! error TS2304: Cannot find name 's'.
13+
!!! error TS2662: Cannot find name 's'. Did you mean the static member 'C.s'?
1414
}
1515
}
1616

tests/baselines/reference/staticVisibility.errors.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/cases/compiler/staticVisibility.ts(10,9): error TS2304: Cannot find name 's'.
2-
tests/cases/compiler/staticVisibility.ts(13,9): error TS2304: Cannot find name 'b'.
1+
tests/cases/compiler/staticVisibility.ts(10,9): error TS2662: Cannot find name 's'. Did you mean the static member 'C1.s'?
2+
tests/cases/compiler/staticVisibility.ts(13,9): error TS2662: Cannot find name 'b'. Did you mean the static member 'C1.b'?
33
tests/cases/compiler/staticVisibility.ts(18,9): error TS2304: Cannot find name 'v'.
44
tests/cases/compiler/staticVisibility.ts(19,14): error TS2339: Property 'p' does not exist on type 'typeof C1'.
55
tests/cases/compiler/staticVisibility.ts(31,12): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
@@ -19,12 +19,12 @@ tests/cases/compiler/staticVisibility.ts(33,29): error TS2304: Cannot find name
1919

2020
s = 1; // should be error
2121
~
22-
!!! error TS2304: Cannot find name 's'.
22+
!!! error TS2662: Cannot find name 's'. Did you mean the static member 'C1.s'?
2323
C1.s = 1; // should be ok
2424

2525
b(); // should be error
2626
~
27-
!!! error TS2304: Cannot find name 'b'.
27+
!!! error TS2662: Cannot find name 'b'. Did you mean the static member 'C1.b'?
2828
C1.b(); // should be ok
2929
}
3030

0 commit comments

Comments
 (0)