mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
363 B
TypeScript
19 lines
363 B
TypeScript
//// [tests/cases/compiler/functionOverloadsOnGenericArity1.ts] ////
|
|
|
|
//// [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]
|
|
"use strict";
|