mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
413 B
Plaintext
13 lines
413 B
Plaintext
accessInstanceMemberFromStaticMethod01.ts(5,17): error TS2662: Cannot find name 'foo'. Did you mean the static member 'C.foo'?
|
|
|
|
|
|
==== accessInstanceMemberFromStaticMethod01.ts (1 errors) ====
|
|
class C {
|
|
static foo: string;
|
|
|
|
bar() {
|
|
let k = foo;
|
|
~~~
|
|
!!! error TS2662: Cannot find name 'foo'. Did you mean the static member 'C.foo'?
|
|
}
|
|
} |