8 lines
No EOL
303 B
Text
8 lines
No EOL
303 B
Text
==== tests/cases/compiler/optionalParamReferencingOtherParams2.ts (1 errors) ====
|
|
var a = 1;
|
|
function strange(x = a, y = b) {
|
|
~
|
|
!!! Initializer of parameter 'y' cannot reference identifier 'b' declared after it.
|
|
var b = "";
|
|
return y;
|
|
} |