15 lines
231 B
Plaintext
15 lines
231 B
Plaintext
=== 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
|
|
}
|