mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
863 B
Plaintext
25 lines
863 B
Plaintext
declarationEmitExpressionInExtends.ts(6,5): error TS2564: Property 's' has no initializer and is not definitely assigned in the constructor.
|
|
declarationEmitExpressionInExtends.ts(9,17): error TS2454: Variable 'x' is used before being assigned.
|
|
declarationEmitExpressionInExtends.ts(13,1): error TS2454: Variable 'q' is used before being assigned.
|
|
|
|
|
|
==== declarationEmitExpressionInExtends.ts (3 errors) ====
|
|
var x: {
|
|
new<T>(s: any): Q;
|
|
}
|
|
|
|
class Q {
|
|
s: string;
|
|
~
|
|
!!! error TS2564: Property 's' has no initializer and is not definitely assigned in the constructor.
|
|
}
|
|
|
|
class B extends x<string> {
|
|
~
|
|
!!! error TS2454: Variable 'x' is used before being assigned.
|
|
}
|
|
|
|
var q: B;
|
|
q.s;
|
|
~
|
|
!!! error TS2454: Variable 'q' is used before being assigned. |