15 lines
226 B
TypeScript
15 lines
226 B
TypeScript
//// [callConstructAssignment.ts]
|
|
|
|
|
|
var foo:{ ( ):void; }
|
|
|
|
var bar:{ new ( ):any; }
|
|
|
|
foo = bar; // error
|
|
bar = foo; // error
|
|
|
|
//// [callConstructAssignment.js]
|
|
var foo;
|
|
var bar;
|
|
foo = bar; // error
|
|
bar = foo; // error
|