You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following source (adapted from tests/language/function_syntax_test.dart) generates 62 errors and 4 warnings in the editor:
class FunctionSyntaxTest {
static void testInitializers // Note: missing '()'
{
Expect.equals(42, (new C.cb0().fn)());
Expect.equals(43, (new C.ca0().fn)());
}
}
It looks like the parser is getting completely lost and trying to parse everything between the inner set of braces as part of a class declaration. We really should be able to do a better job of error recovery than this.
The text was updated successfully, but these errors were encountered:
The following source (adapted from tests/language/function_syntax_test.dart) generates 62 errors and 4 warnings in the editor:
class FunctionSyntaxTest {
static void testInitializers // Note: missing '()'
{
Expect.equals(42, (new C.cb0().fn)());
Expect.equals(43, (new C.ca0().fn)());
}
}
It looks like the parser is getting completely lost and trying to parse everything between the inner set of braces as part of a class declaration. We really should be able to do a better job of error recovery than this.
The text was updated successfully, but these errors were encountered: