TypeScript/tests/baselines/reference/optionalParamReferencingOtherParams3.errors.txt
2014-07-12 17:30:19 -07:00

7 lines
259 B
Plaintext

==== 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;
}