class Foo {
function func() {
switch x {
case _:
new X(Y(function () foo));
case A({a: _}, _):
// highlighting is broken at this point
new Map<String, String>();
trace("foobar");
var x = 1 + 2;
var etc = "etc";
}
}
}
It seems the lines with new X and case A are both required for the issue to happen. Can be alleviated by putting foo inside {}.
It seems the lines with
new X
andcase A
are both required for the issue to happen. Can be alleviated by puttingfoo
inside{}
.