TypeScript/tests/baselines/reference/genericCallWithFixedArguments.types
2015-04-15 16:44:20 -07:00

24 lines
401 B
Plaintext

=== tests/cases/compiler/genericCallWithFixedArguments.ts ===
class A { foo() { } }
>A : A
>foo : () => void
class B { bar() { }}
>B : B
>bar : () => void
function g<T, U>(x) { }
>g : <T, U>(x: any) => void
>T : T
>U : U
>x : any
g<A, B>(7) // the parameter list is fixed, so this should not error
>g<A, B>(7) : void
>g : <T, U>(x: any) => void
>A : A
>B : B
>7 : number