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