mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
677 B
Plaintext
21 lines
677 B
Plaintext
classExpressionTest2.ts(6,22): error TS2454: Variable 't' is used before being assigned.
|
|
classExpressionTest2.ts(6,25): error TS2454: Variable 'x' is used before being assigned.
|
|
|
|
|
|
==== classExpressionTest2.ts (2 errors) ====
|
|
function M() {
|
|
var m = class C<X> {
|
|
f<T>() {
|
|
var t: T;
|
|
var x: X;
|
|
return { t, x };
|
|
~
|
|
!!! error TS2454: Variable 't' is used before being assigned.
|
|
~
|
|
!!! error TS2454: Variable 'x' is used before being assigned.
|
|
}
|
|
}
|
|
|
|
var v = new m<number>();
|
|
return v.f<string>();
|
|
} |