2014-10-15 00:18:44 +02:00
|
|
|
=== tests/cases/compiler/functionTypeArgumentArrayAssignment.ts ===
|
|
|
|
module test {
|
|
|
|
>test : typeof test
|
|
|
|
|
|
|
|
interface Array<T> {
|
|
|
|
>Array : Array<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
foo: T;
|
|
|
|
>foo : T
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
length: number;
|
|
|
|
>length : number
|
|
|
|
}
|
|
|
|
|
|
|
|
function map<U>() {
|
|
|
|
>map : <U>() => void
|
|
|
|
>U : U
|
|
|
|
|
|
|
|
var ys: U[] = [];
|
|
|
|
>ys : U[]
|
|
|
|
>U : U
|
2014-10-16 18:30:58 +02:00
|
|
|
>[] : undefined[]
|
2014-10-15 00:18:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|