23 lines
388 B
Text
23 lines
388 B
Text
|
=== 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
|
||
|
|
||
|
|