The new baselines all look correct to me, but obviously a number of the tests need to be updated to reflect union types and the new behavior of best common type. This commit does not cover that.
14 lines
237 B
Text
14 lines
237 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 : Array<string | T>
|
|
>[t, ""] : Array<string | T>
|
|
>t : T
|
|
}
|