mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
598 B
Plaintext
16 lines
598 B
Plaintext
accessStaticMemberFromInstanceMethod01.ts(2,5): error TS2564: Property 'foo' has no initializer and is not definitely assigned in the constructor.
|
|
accessStaticMemberFromInstanceMethod01.ts(5,17): error TS2304: Cannot find name 'foo'.
|
|
|
|
|
|
==== accessStaticMemberFromInstanceMethod01.ts (2 errors) ====
|
|
class C {
|
|
foo: string;
|
|
~~~
|
|
!!! error TS2564: Property 'foo' has no initializer and is not definitely assigned in the constructor.
|
|
|
|
static bar() {
|
|
let k = foo;
|
|
~~~
|
|
!!! error TS2304: Cannot find name 'foo'.
|
|
}
|
|
} |