15 lines
211 B
Text
15 lines
211 B
Text
|
=== tests/cases/compiler/typeParameterAsElementType.ts ===
|
||
|
function fee<T>() {
|
||
|
>fee : <T>() => void
|
||
|
>T : T
|
||
|
|
||
|
var t: T;
|
||
|
>t : T
|
||
|
>T : T
|
||
|
|
||
|
var arr = [t, ""];
|
||
|
>arr : {}[]
|
||
|
>[t, ""] : {}[]
|
||
|
>t : T
|
||
|
}
|