TypeScript/tests/baselines/reference/genericCallWithFixedArguments.types

24 lines
401 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/genericCallWithFixedArguments.ts ===
class A { foo() { } }
>A : A
>foo : () => void
2014-08-15 23:33:16 +02:00
class B { bar() { }}
>B : B
>bar : () => void
2014-08-15 23:33:16 +02:00
function g<T, U>(x) { }
>g : <T, U>(x: any) => void
>T : T
>U : U
>x : any
2014-08-15 23:33:16 +02:00
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
2015-04-13 21:36:11 +02:00
>7 : number
2014-08-15 23:33:16 +02:00