7 lines
No EOL
259 B
Text
7 lines
No EOL
259 B
Text
==== tests/cases/compiler/optionalParamReferencingOtherParams3.ts (1 errors) ====
|
|
function right(a = b, b = a) {
|
|
~
|
|
!!! Initializer of parameter 'a' cannot reference identifier 'b' declared after it.
|
|
a;
|
|
b;
|
|
} |