TypeScript/tests/baselines/reference/optionalParamReferencingOtherParams3.errors.txt

10 lines
440 B
Plaintext
Raw Normal View History

tests/cases/compiler/optionalParamReferencingOtherParams3.ts(1,20): error TS2373: Initializer of parameter 'a' cannot reference identifier 'b' declared after it.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/optionalParamReferencingOtherParams3.ts (1 errors) ====
function right(a = b, b = a) {
~
!!! error TS2373: Initializer of parameter 'a' cannot reference identifier 'b' declared after it.
2014-07-13 01:04:16 +02:00
a;
b;
}