2014-07-13 01:04:16 +02:00
|
|
|
//// [conformanceFunctionOverloads.ts]
|
|
|
|
// 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [conformanceFunctionOverloads.js]
|
2014-08-19 19:43:13 +02:00
|
|
|
// Function overloads do not emit code
|
2014-12-03 01:09:41 +01:00
|
|
|
// 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
|