mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
450 B
TypeScript
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
|