21 lines
475 B
Text
21 lines
475 B
Text
=== tests/cases/compiler/genericInterfaceFunctionTypeParameter.ts ===
|
|
export interface IFoo<A> { }
|
|
>IFoo : IFoo<A>
|
|
>A : A
|
|
|
|
export function foo<A>(fn: (ifoo: IFoo<A>) => void) {
|
|
>foo : <A>(fn: (ifoo: IFoo<A>) => void) => void
|
|
>A : A
|
|
>fn : (ifoo: IFoo<A>) => void
|
|
>ifoo : IFoo<A>
|
|
>IFoo : IFoo<A>
|
|
>A : A
|
|
|
|
foo(fn); // Invocation is necessary to repro (!)
|
|
>foo(fn) : void
|
|
>foo : <A>(fn: (ifoo: IFoo<A>) => void) => void
|
|
>fn : (ifoo: IFoo<A>) => void
|
|
}
|
|
|
|
|
|
|