2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/staticClassMemberError.ts(4,3): error TS2304: Cannot find name 's'.
|
2014-10-01 02:15:18 +02:00
|
|
|
tests/cases/compiler/staticClassMemberError.ts(9,10): error TS2300: Duplicate identifier 'Foo'.
|
2014-09-12 22:35:07 +02:00
|
|
|
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'.
|
|
|
|
|
|
|
|
|
2014-10-01 02:15:18 +02:00
|
|
|
==== tests/cases/compiler/staticClassMemberError.ts (4 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
class C {
|
|
|
|
static s;
|
|
|
|
public a() {
|
|
|
|
s = 1;
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 's'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// just want to make sure this one doesn't crash the compiler
|
|
|
|
function Foo();
|
2014-07-31 01:27:13 +02:00
|
|
|
~~~
|
2014-10-01 02:15:18 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'Foo'.
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
|
2014-07-13 01:04:16 +02:00
|
|
|
class Foo {
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'Foo'.
|
2014-07-13 01:04:16 +02:00
|
|
|
static bar;
|
|
|
|
}
|