mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
634 B
Plaintext
15 lines
634 B
Plaintext
assignmentCompatability4.ts(7,28): error TS2454: Variable 'aa' is used before being assigned.
|
|
|
|
|
|
==== assignmentCompatability4.ts (1 errors) ====
|
|
namespace __test1__ {
|
|
export interface interfaceWithPublicAndOptional<T,U> { one: T; two?: U; }; var obj4: interfaceWithPublicAndOptional<number,string> = { one: 1 };;
|
|
export var __val__obj4 = obj4;
|
|
}
|
|
namespace __test2__ {
|
|
export var aa:{one:number;};;
|
|
export var __val__aa = aa;
|
|
~~
|
|
!!! error TS2454: Variable 'aa' is used before being assigned.
|
|
}
|
|
__test2__.__val__aa = __test1__.__val__obj4 |