Files
tsgo/testdata/baselines/reference/submodule/compiler/callConstructAssignment.js

15 lines
298 B
TypeScript

//// [tests/cases/compiler/callConstructAssignment.ts] ////
//// [callConstructAssignment.ts]
declare var foo:{ ( ):void; }
declare var bar:{ new ( ):any; }
foo = bar; // error
bar = foo; // error
//// [callConstructAssignment.js]
"use strict";
foo = bar; // error
bar = foo; // error