TypeScript/tests/baselines/reference/functionTypeArgumentArrayAssignment.types

28 lines
1 KiB
Text
Raw Normal View History

=== tests/cases/compiler/functionTypeArgumentArrayAssignment.ts ===
module test {
2015-04-13 23:01:57 +02:00
>test : typeof test, Symbol(test, Decl(functionTypeArgumentArrayAssignment.ts, 0, 0))
interface Array<T> {
2015-04-13 23:01:57 +02:00
>Array : Array<T>, Symbol(Array, Decl(functionTypeArgumentArrayAssignment.ts, 0, 13))
>T : T, Symbol(T, Decl(functionTypeArgumentArrayAssignment.ts, 1, 20))
foo: T;
2015-04-13 23:01:57 +02:00
>foo : T, Symbol(foo, Decl(functionTypeArgumentArrayAssignment.ts, 1, 24))
>T : T, Symbol(T, Decl(functionTypeArgumentArrayAssignment.ts, 1, 20))
length: number;
2015-04-13 23:01:57 +02:00
>length : number, Symbol(length, Decl(functionTypeArgumentArrayAssignment.ts, 2, 15))
}
function map<U>() {
2015-04-13 23:01:57 +02:00
>map : <U>() => void, Symbol(map, Decl(functionTypeArgumentArrayAssignment.ts, 4, 5))
>U : U, Symbol(U, Decl(functionTypeArgumentArrayAssignment.ts, 6, 17))
var ys: U[] = [];
2015-04-13 23:01:57 +02:00
>ys : U[], Symbol(ys, Decl(functionTypeArgumentArrayAssignment.ts, 7, 11))
>U : U, Symbol(U, Decl(functionTypeArgumentArrayAssignment.ts, 6, 17))
>[] : undefined[]
}
}