27 lines
No EOL
1,015 B
Text
27 lines
No EOL
1,015 B
Text
tests/cases/compiler/staticClassMemberError.ts(4,3): error TS2304: Cannot find name 's'.
|
|
tests/cases/compiler/staticClassMemberError.ts(9,10): error TS2300: Duplicate identifier 'Foo'.
|
|
tests/cases/compiler/staticClassMemberError.ts(9,10): error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
tests/cases/compiler/staticClassMemberError.ts(10,7): error TS2300: Duplicate identifier 'Foo'.
|
|
|
|
|
|
==== tests/cases/compiler/staticClassMemberError.ts (4 errors) ====
|
|
class C {
|
|
static s;
|
|
public a() {
|
|
s = 1;
|
|
~
|
|
!!! error TS2304: Cannot find name 's'.
|
|
}
|
|
}
|
|
|
|
// just want to make sure this one doesn't crash the compiler
|
|
function Foo();
|
|
~~~
|
|
!!! error TS2300: Duplicate identifier 'Foo'.
|
|
~~~
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
|
class Foo {
|
|
~~~
|
|
!!! error TS2300: Duplicate identifier 'Foo'.
|
|
static bar;
|
|
} |