145 lines
5.3 KiB
Text
145 lines
5.3 KiB
Text
=== tests/cases/conformance/statements/forStatements/forStatements.ts ===
|
|
interface I {
|
|
>I : Symbol(I, Decl(forStatements.ts, 0, 0))
|
|
|
|
id: number;
|
|
>id : Symbol(id, Decl(forStatements.ts, 0, 13))
|
|
}
|
|
|
|
class C implements I {
|
|
>C : Symbol(C, Decl(forStatements.ts, 2, 1))
|
|
>I : Symbol(I, Decl(forStatements.ts, 0, 0))
|
|
|
|
id: number;
|
|
>id : Symbol(id, Decl(forStatements.ts, 4, 22))
|
|
}
|
|
|
|
class D<T>{
|
|
>D : Symbol(D, Decl(forStatements.ts, 6, 1))
|
|
>T : Symbol(T, Decl(forStatements.ts, 8, 8))
|
|
|
|
source: T;
|
|
>source : Symbol(source, Decl(forStatements.ts, 8, 11))
|
|
>T : Symbol(T, Decl(forStatements.ts, 8, 8))
|
|
|
|
recurse: D<T>;
|
|
>recurse : Symbol(recurse, Decl(forStatements.ts, 9, 14))
|
|
>D : Symbol(D, Decl(forStatements.ts, 6, 1))
|
|
>T : Symbol(T, Decl(forStatements.ts, 8, 8))
|
|
|
|
wrapped: D<D<T>>
|
|
>wrapped : Symbol(wrapped, Decl(forStatements.ts, 10, 18))
|
|
>D : Symbol(D, Decl(forStatements.ts, 6, 1))
|
|
>D : Symbol(D, Decl(forStatements.ts, 6, 1))
|
|
>T : Symbol(T, Decl(forStatements.ts, 8, 8))
|
|
}
|
|
|
|
function F(x: string): number { return 42; }
|
|
>F : Symbol(F, Decl(forStatements.ts, 12, 1))
|
|
>x : Symbol(x, Decl(forStatements.ts, 14, 11))
|
|
|
|
module M {
|
|
>M : Symbol(M, Decl(forStatements.ts, 14, 44))
|
|
|
|
export class A {
|
|
>A : Symbol(A, Decl(forStatements.ts, 16, 10))
|
|
|
|
name: string;
|
|
>name : Symbol(name, Decl(forStatements.ts, 17, 20))
|
|
}
|
|
|
|
export function F2(x: number): string { return x.toString(); }
|
|
>F2 : Symbol(F2, Decl(forStatements.ts, 19, 5))
|
|
>x : Symbol(x, Decl(forStatements.ts, 21, 23))
|
|
>x.toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
|
|
>x : Symbol(x, Decl(forStatements.ts, 21, 23))
|
|
>toString : Symbol(Number.toString, Decl(lib.d.ts, 458, 18))
|
|
}
|
|
|
|
for(var aNumber: number = 9.9;;){}
|
|
>aNumber : Symbol(aNumber, Decl(forStatements.ts, 24, 7))
|
|
|
|
for(var aString: string = 'this is a string';;){}
|
|
>aString : Symbol(aString, Decl(forStatements.ts, 25, 7))
|
|
|
|
for(var aDate: Date = new Date(12);;){}
|
|
>aDate : Symbol(aDate, Decl(forStatements.ts, 26, 7))
|
|
>Date : Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11))
|
|
>Date : Symbol(Date, Decl(lib.d.ts, 633, 23), Decl(lib.d.ts, 815, 11))
|
|
|
|
for(var anObject: Object = new Object();;){}
|
|
>anObject : Symbol(anObject, Decl(forStatements.ts, 27, 7))
|
|
>Object : Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11))
|
|
>Object : Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11))
|
|
|
|
for(var anAny: any = null;;){}
|
|
>anAny : Symbol(anAny, Decl(forStatements.ts, 29, 7))
|
|
|
|
for(var aSecondAny: any = undefined;;){}
|
|
>aSecondAny : Symbol(aSecondAny, Decl(forStatements.ts, 30, 7))
|
|
>undefined : Symbol(undefined)
|
|
|
|
for(var aVoid: void = undefined;;){}
|
|
>aVoid : Symbol(aVoid, Decl(forStatements.ts, 31, 7))
|
|
>undefined : Symbol(undefined)
|
|
|
|
for(var anInterface: I = new C();;){}
|
|
>anInterface : Symbol(anInterface, Decl(forStatements.ts, 33, 7))
|
|
>I : Symbol(I, Decl(forStatements.ts, 0, 0))
|
|
>C : Symbol(C, Decl(forStatements.ts, 2, 1))
|
|
|
|
for(var aClass: C = new C();;){}
|
|
>aClass : Symbol(aClass, Decl(forStatements.ts, 34, 7))
|
|
>C : Symbol(C, Decl(forStatements.ts, 2, 1))
|
|
>C : Symbol(C, Decl(forStatements.ts, 2, 1))
|
|
|
|
for(var aGenericClass: D<string> = new D<string>();;){}
|
|
>aGenericClass : Symbol(aGenericClass, Decl(forStatements.ts, 35, 7))
|
|
>D : Symbol(D, Decl(forStatements.ts, 6, 1))
|
|
>D : Symbol(D, Decl(forStatements.ts, 6, 1))
|
|
|
|
for(var anObjectLiteral: I = { id: 12 };;){}
|
|
>anObjectLiteral : Symbol(anObjectLiteral, Decl(forStatements.ts, 36, 7))
|
|
>I : Symbol(I, Decl(forStatements.ts, 0, 0))
|
|
>id : Symbol(id, Decl(forStatements.ts, 36, 30))
|
|
|
|
for(var anOtherObjectLiteral: { id: number } = new C();;){}
|
|
>anOtherObjectLiteral : Symbol(anOtherObjectLiteral, Decl(forStatements.ts, 37, 7))
|
|
>id : Symbol(id, Decl(forStatements.ts, 37, 31))
|
|
>C : Symbol(C, Decl(forStatements.ts, 2, 1))
|
|
|
|
for(var aFunction: typeof F = F;;){}
|
|
>aFunction : Symbol(aFunction, Decl(forStatements.ts, 39, 7))
|
|
>F : Symbol(F, Decl(forStatements.ts, 12, 1))
|
|
>F : Symbol(F, Decl(forStatements.ts, 12, 1))
|
|
|
|
for(var anOtherFunction: (x: string) => number = F;;){}
|
|
>anOtherFunction : Symbol(anOtherFunction, Decl(forStatements.ts, 40, 7))
|
|
>x : Symbol(x, Decl(forStatements.ts, 40, 26))
|
|
>F : Symbol(F, Decl(forStatements.ts, 12, 1))
|
|
|
|
for(var aLambda: typeof F = (x) => 2;;){}
|
|
>aLambda : Symbol(aLambda, Decl(forStatements.ts, 41, 7))
|
|
>F : Symbol(F, Decl(forStatements.ts, 12, 1))
|
|
>x : Symbol(x, Decl(forStatements.ts, 41, 29))
|
|
|
|
for(var aModule: typeof M = M;;){}
|
|
>aModule : Symbol(aModule, Decl(forStatements.ts, 43, 7))
|
|
>M : Symbol(M, Decl(forStatements.ts, 14, 44))
|
|
>M : Symbol(M, Decl(forStatements.ts, 14, 44))
|
|
|
|
for(var aClassInModule: M.A = new M.A();;){}
|
|
>aClassInModule : Symbol(aClassInModule, Decl(forStatements.ts, 44, 7))
|
|
>M : Symbol(M, Decl(forStatements.ts, 14, 44))
|
|
>A : Symbol(M.A, Decl(forStatements.ts, 16, 10))
|
|
>M.A : Symbol(M.A, Decl(forStatements.ts, 16, 10))
|
|
>M : Symbol(M, Decl(forStatements.ts, 14, 44))
|
|
>A : Symbol(M.A, Decl(forStatements.ts, 16, 10))
|
|
|
|
for(var aFunctionInModule: typeof M.F2 = (x) => 'this is a string';;){}
|
|
>aFunctionInModule : Symbol(aFunctionInModule, Decl(forStatements.ts, 45, 7))
|
|
>M.F2 : Symbol(M.F2, Decl(forStatements.ts, 19, 5))
|
|
>M : Symbol(M, Decl(forStatements.ts, 14, 44))
|
|
>F2 : Symbol(M.F2, Decl(forStatements.ts, 19, 5))
|
|
>x : Symbol(x, Decl(forStatements.ts, 45, 42))
|
|
|