mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
360 B
TypeScript
11 lines
360 B
TypeScript
//// [tests/cases/compiler/implicitAnyNewExprLackConstructorSignature.ts] ////
|
|
|
|
//// [implicitAnyNewExprLackConstructorSignature.ts]
|
|
function Point() { this.x = 3; }
|
|
var x: any = new Point(); // error at "new"
|
|
|
|
//// [implicitAnyNewExprLackConstructorSignature.js]
|
|
"use strict";
|
|
function Point() { this.x = 3; }
|
|
var x = new Point(); // error at "new"
|