TypeScript/tests/baselines/reference/overloadOnGenericArity.js

10 lines
207 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [overloadOnGenericArity.ts]
interface Test {
then<U>(p: string): string;
then(p: string): Date; // Error: Overloads cannot differ only by return type
}
//// [overloadOnGenericArity.js]