mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
580 B
Plaintext
18 lines
580 B
Plaintext
//// [tests/cases/compiler/callConstructAssignment.ts] ////
|
|
|
|
=== callConstructAssignment.ts ===
|
|
declare var foo:{ ( ):void; }
|
|
>foo : Symbol(foo, Decl(callConstructAssignment.ts, 0, 11))
|
|
|
|
declare var bar:{ new ( ):any; }
|
|
>bar : Symbol(bar, Decl(callConstructAssignment.ts, 2, 11))
|
|
|
|
foo = bar; // error
|
|
>foo : Symbol(foo, Decl(callConstructAssignment.ts, 0, 11))
|
|
>bar : Symbol(bar, Decl(callConstructAssignment.ts, 2, 11))
|
|
|
|
bar = foo; // error
|
|
>bar : Symbol(bar, Decl(callConstructAssignment.ts, 2, 11))
|
|
>foo : Symbol(foo, Decl(callConstructAssignment.ts, 0, 11))
|
|
|