15 lines
245 B
Text
15 lines
245 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 : (string | T)[]
|
|
>[t, ""] : (string | T)[]
|
|
>t : T
|
|
>"" : string
|
|
}
|