This is important for incremental parsing, as it is where we can attach parse errors at the end of the file to. Also, it helps with things like emitting comments at the end of the file.
37 lines
1.5 KiB
JavaScript
37 lines
1.5 KiB
JavaScript
//// [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]
|
|
// 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
|