mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
294 B
TypeScript
17 lines
294 B
TypeScript
//// [tests/cases/compiler/assignmentCompatability44.ts] ////
|
|
|
|
//// [assignmentCompatability44.ts]
|
|
class Foo {
|
|
constructor(x: number) {}
|
|
}
|
|
|
|
const foo: { new(): Foo } = Foo;
|
|
|
|
|
|
//// [assignmentCompatability44.js]
|
|
"use strict";
|
|
class Foo {
|
|
constructor(x) { }
|
|
}
|
|
const foo = Foo;
|