19 lines
419 B
Text
19 lines
419 B
Text
|
=== tests/cases/compiler/typeParameterAndArgumentOfSameName1.ts ===
|
||
|
function f<A extends Number>(A: A): A {
|
||
|
>f : <A extends Number>(A: A) => A
|
||
|
>A : A
|
||
|
>Number : Number
|
||
|
>A : A
|
||
|
>A : A
|
||
|
>A : A
|
||
|
|
||
|
var r = A.toExponential(123);
|
||
|
>r : string
|
||
|
>A.toExponential(123) : string
|
||
|
>A.toExponential : (fractionDigits?: number) => string
|
||
|
>A : A
|
||
|
>toExponential : (fractionDigits?: number) => string
|
||
|
|
||
|
return null;
|
||
|
}
|