TypeScript/tests/baselines/reference/functionOverloadsOnGenericArity1.js

16 lines
276 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [functionOverloadsOnGenericArity1.ts]
// overloading on arity not allowed
interface C {
f<T>(): string;
f<T, U>(): string;
<T>(): string;
<T, U>(): string;
new <T>(): string;
new <T, U>(): string;
}
//// [functionOverloadsOnGenericArity1.js]