mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
696 B
Plaintext
19 lines
696 B
Plaintext
classStaticBlock9.ts(2,20): error TS2729: Property 'foo' is used before its initialization.
|
|
classStaticBlock9.ts(4,11): error TS2729: Property 'foo' is used before its initialization.
|
|
|
|
|
|
==== classStaticBlock9.ts (2 errors) ====
|
|
class A {
|
|
static bar = A.foo + 1
|
|
~~~
|
|
!!! error TS2729: Property 'foo' is used before its initialization.
|
|
!!! related TS2728 classStaticBlock9.ts:6:12: 'foo' is declared here.
|
|
static {
|
|
A.foo + 2;
|
|
~~~
|
|
!!! error TS2729: Property 'foo' is used before its initialization.
|
|
!!! related TS2728 classStaticBlock9.ts:6:12: 'foo' is declared here.
|
|
}
|
|
static foo = 1;
|
|
}
|
|
|