mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
298 B
TypeScript
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
|