mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
521 B
Plaintext
19 lines
521 B
Plaintext
a.ts(4,1): error TS2454: Variable 'a' is used before being assigned.
|
|
b.ts(4,1): error TS2454: Variable 'a' is used before being assigned.
|
|
|
|
|
|
==== a.ts (1 errors) ====
|
|
export default interface A { value: number; }
|
|
|
|
var a: A;
|
|
a.value.toExponential();
|
|
~
|
|
!!! error TS2454: Variable 'a' is used before being assigned.
|
|
|
|
==== b.ts (1 errors) ====
|
|
import A from './a';
|
|
|
|
var a: A;
|
|
a.value.toExponential();
|
|
~
|
|
!!! error TS2454: Variable 'a' is used before being assigned. |