9 lines
207 B
TypeScript
9 lines
207 B
TypeScript
//// [overloadOnGenericArity.ts]
|
|
interface Test {
|
|
then<U>(p: string): string;
|
|
then(p: string): Date; // Error: Overloads cannot differ only by return type
|
|
}
|
|
|
|
|
|
|
|
//// [overloadOnGenericArity.js]
|