TypeScript/tests/baselines/reference/callConstructAssignment.js
2014-08-15 15:49:09 -07:00

16 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