mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
498 B
Plaintext
17 lines
498 B
Plaintext
checkInheritedProperty.ts(7,14): error TS2729: Property 'b' is used before its initialization.
|
|
|
|
|
|
==== checkInheritedProperty.ts (1 errors) ====
|
|
class Base {
|
|
}
|
|
|
|
declare const BaseFactory: new() => Base & { c: string }
|
|
|
|
class Derived extends BaseFactory {
|
|
a = this.b
|
|
~
|
|
!!! error TS2729: Property 'b' is used before its initialization.
|
|
!!! related TS2728 checkInheritedProperty.ts:8:5: 'b' is declared here.
|
|
b = "abc"
|
|
}
|
|
|