Files
tsgo/testdata/baselines/reference/submodule/compiler/genericCallWithFixedArguments.js

22 lines
450 B
TypeScript

//// [tests/cases/compiler/genericCallWithFixedArguments.ts] ////
//// [genericCallWithFixedArguments.ts]
class A { foo() { } }
class B { bar() { }}
function g<T, U>(x) { }
g<A, B>(7) // the parameter list is fixed, so this should not error
//// [genericCallWithFixedArguments.js]
"use strict";
class A {
foo() { }
}
class B {
bar() { }
}
function g(x) { }
g(7); // the parameter list is fixed, so this should not error