187 lines
4.6 KiB
Text
187 lines
4.6 KiB
Text
=== tests/cases/compiler/es6ClassTest8.ts ===
|
|
function f1(x:any) {return x;}
|
|
>f1 : (x: any) => any
|
|
>x : any
|
|
>x : any
|
|
|
|
class C {
|
|
>C : C
|
|
|
|
constructor() {
|
|
var bar:any = (function() {
|
|
>bar : any
|
|
>(function() { return bar; // 'bar' should be resolvable }) : () => any
|
|
>function() { return bar; // 'bar' should be resolvable } : () => any
|
|
|
|
return bar; // 'bar' should be resolvable
|
|
>bar : any
|
|
|
|
});
|
|
var b = f1(f1(bar));
|
|
>b : any
|
|
>f1(f1(bar)) : any
|
|
>f1 : (x: any) => any
|
|
>f1(bar) : any
|
|
>f1 : (x: any) => any
|
|
>bar : any
|
|
}
|
|
|
|
}
|
|
|
|
class Vector {
|
|
>Vector : Vector
|
|
|
|
static norm(v:Vector):Vector {return null;}
|
|
>norm : (v: Vector) => Vector
|
|
>v : Vector
|
|
>Vector : Vector
|
|
>Vector : Vector
|
|
>null : null
|
|
|
|
static minus(v1:Vector, v2:Vector):Vector {return null;}
|
|
>minus : (v1: Vector, v2: Vector) => Vector
|
|
>v1 : Vector
|
|
>Vector : Vector
|
|
>v2 : Vector
|
|
>Vector : Vector
|
|
>Vector : Vector
|
|
>null : null
|
|
|
|
static times(v1:Vector, v2:Vector):Vector {return null;}
|
|
>times : (v1: Vector, v2: Vector) => Vector
|
|
>v1 : Vector
|
|
>Vector : Vector
|
|
>v2 : Vector
|
|
>Vector : Vector
|
|
>Vector : Vector
|
|
>null : null
|
|
|
|
static cross(v1:Vector, v2:Vector):Vector {return null;}
|
|
>cross : (v1: Vector, v2: Vector) => Vector
|
|
>v1 : Vector
|
|
>Vector : Vector
|
|
>v2 : Vector
|
|
>Vector : Vector
|
|
>Vector : Vector
|
|
>null : null
|
|
|
|
constructor(public x: number,
|
|
>x : number
|
|
|
|
public y: number,
|
|
>y : number
|
|
|
|
public z: number) {
|
|
>z : number
|
|
}
|
|
|
|
static dot(v1:Vector, v2:Vector):Vector {return null;}
|
|
>dot : (v1: Vector, v2: Vector) => Vector
|
|
>v1 : Vector
|
|
>Vector : Vector
|
|
>v2 : Vector
|
|
>Vector : Vector
|
|
>Vector : Vector
|
|
>null : null
|
|
|
|
}
|
|
|
|
class Camera {
|
|
>Camera : Camera
|
|
|
|
public forward: Vector;
|
|
>forward : Vector
|
|
>Vector : Vector
|
|
|
|
public right: Vector;
|
|
>right : Vector
|
|
>Vector : Vector
|
|
|
|
public up: Vector;
|
|
>up : Vector
|
|
>Vector : Vector
|
|
|
|
constructor(public pos: Vector, lookAt: Vector) {
|
|
>pos : Vector
|
|
>Vector : Vector
|
|
>lookAt : Vector
|
|
>Vector : Vector
|
|
|
|
var down = new Vector(0.0, -1.0, 0.0);
|
|
>down : Vector
|
|
>new Vector(0.0, -1.0, 0.0) : Vector
|
|
>Vector : typeof Vector
|
|
>0.0 : number
|
|
>-1.0 : number
|
|
>1.0 : number
|
|
>0.0 : number
|
|
|
|
this.forward = Vector.norm(Vector.minus(lookAt,this.pos));
|
|
>this.forward = Vector.norm(Vector.minus(lookAt,this.pos)) : Vector
|
|
>this.forward : Vector
|
|
>this : this
|
|
>forward : Vector
|
|
>Vector.norm(Vector.minus(lookAt,this.pos)) : Vector
|
|
>Vector.norm : (v: Vector) => Vector
|
|
>Vector : typeof Vector
|
|
>norm : (v: Vector) => Vector
|
|
>Vector.minus(lookAt,this.pos) : Vector
|
|
>Vector.minus : (v1: Vector, v2: Vector) => Vector
|
|
>Vector : typeof Vector
|
|
>minus : (v1: Vector, v2: Vector) => Vector
|
|
>lookAt : Vector
|
|
>this.pos : Vector
|
|
>this : this
|
|
>pos : Vector
|
|
|
|
this.right = Vector.times(down, Vector.norm(Vector.cross(this.forward, down)));
|
|
>this.right = Vector.times(down, Vector.norm(Vector.cross(this.forward, down))) : Vector
|
|
>this.right : Vector
|
|
>this : this
|
|
>right : Vector
|
|
>Vector.times(down, Vector.norm(Vector.cross(this.forward, down))) : Vector
|
|
>Vector.times : (v1: Vector, v2: Vector) => Vector
|
|
>Vector : typeof Vector
|
|
>times : (v1: Vector, v2: Vector) => Vector
|
|
>down : Vector
|
|
>Vector.norm(Vector.cross(this.forward, down)) : Vector
|
|
>Vector.norm : (v: Vector) => Vector
|
|
>Vector : typeof Vector
|
|
>norm : (v: Vector) => Vector
|
|
>Vector.cross(this.forward, down) : Vector
|
|
>Vector.cross : (v1: Vector, v2: Vector) => Vector
|
|
>Vector : typeof Vector
|
|
>cross : (v1: Vector, v2: Vector) => Vector
|
|
>this.forward : Vector
|
|
>this : this
|
|
>forward : Vector
|
|
>down : Vector
|
|
|
|
this.up = Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right)));
|
|
>this.up = Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right))) : Vector
|
|
>this.up : Vector
|
|
>this : this
|
|
>up : Vector
|
|
>Vector.times(down, Vector.norm(Vector.cross(this.forward, this.right))) : Vector
|
|
>Vector.times : (v1: Vector, v2: Vector) => Vector
|
|
>Vector : typeof Vector
|
|
>times : (v1: Vector, v2: Vector) => Vector
|
|
>down : Vector
|
|
>Vector.norm(Vector.cross(this.forward, this.right)) : Vector
|
|
>Vector.norm : (v: Vector) => Vector
|
|
>Vector : typeof Vector
|
|
>norm : (v: Vector) => Vector
|
|
>Vector.cross(this.forward, this.right) : Vector
|
|
>Vector.cross : (v1: Vector, v2: Vector) => Vector
|
|
>Vector : typeof Vector
|
|
>cross : (v1: Vector, v2: Vector) => Vector
|
|
>this.forward : Vector
|
|
>this : this
|
|
>forward : Vector
|
|
>this.right : Vector
|
|
>this : this
|
|
>right : Vector
|
|
}
|
|
}
|
|
|
|
|