TypeScript/tests/baselines/reference/genericCallWithFixedArguments.js
2014-07-12 17:30:19 -07:00

28 lines
488 B
JavaScript

//// [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]
var A = (function () {
function A() {
}
A.prototype.foo = function () {
};
return A;
})();
var B = (function () {
function B() {
}
B.prototype.bar = function () {
};
return B;
})();
function g(x) {
}
g(7);