22 lines
758 B
TypeScript
22 lines
758 B
TypeScript
// Function overloads do not emit code
|
|
|
|
// Function overload signature with optional parameter
|
|
|
|
// Function overload signature with optional parameter
|
|
|
|
// Function overloads with generic and non-generic overloads
|
|
|
|
// Function overloads whose only difference is returning different unconstrained generic parameters
|
|
|
|
// Function overloads whose only difference is returning different constrained generic parameters
|
|
|
|
// Function overloads that differ only by type parameter constraints
|
|
|
|
// Function overloads with matching accessibility
|
|
|
|
// Function overloads with matching export
|
|
|
|
// Function overloads with more params than implementation signature
|
|
|
|
// Function overloads where return types are same infinitely recursive type reference
|
|
|