[CIQBUG] parser does not properly handle block scopes

I get the following build error...

BUILD: ERROR: C:\Development\Projects\MagnifyClock\source\MagnifyClockApp.mc:13: mismatched input '{' expecting '}'


With this code

using Toybox.Application as App;

class TestApp extends App.AppBase {

function onStart() {

var x = 1;

{ //<- line 9
var y = 2;
}

{ //<- line 13
var y = 2;
}
}

function getInitialView() {
return [ new TestView() ];
}
}


I would not expect to get a compile error here. If local scopes were not permitted by the language, I'd expect an error on line 9. A simple workaround is to use an if (1) before the scope, but that isn't ideal.