36 lines
475 B
Text
36 lines
475 B
Text
|
=== tests/cases/compiler/anyAsReturnTypeForNewOnCall.ts ===
|
||
|
function Point(x, y) {
|
||
|
>Point : (x: any, y: any) => void
|
||
|
>x : any
|
||
|
>y : any
|
||
|
|
||
|
this.x = x;
|
||
|
>this.x = x : any
|
||
|
>this.x : any
|
||
|
>this : any
|
||
|
>x : any
|
||
|
>x : any
|
||
|
|
||
|
this.y = y;
|
||
|
>this.y = y : any
|
||
|
>this.y : any
|
||
|
>this : any
|
||
|
>y : any
|
||
|
>y : any
|
||
|
|
||
|
}
|
||
|
|
||
|
var o = new Point(3, 4);
|
||
|
>o : any
|
||
|
>new Point(3, 4) : any
|
||
|
>Point : (x: any, y: any) => void
|
||
|
|
||
|
var xx = o.x;
|
||
|
>xx : any
|
||
|
>o.x : any
|
||
|
>o : any
|
||
|
>x : any
|
||
|
|
||
|
|
||
|
|