TypeScript/tests/cases/compiler/functionOverloadsOnGenericArity1.ts

12 lines
195 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// 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;
}