Recovery for initializer if no LBRACE

- If no LBRACE after 'init' keyword parse initializer without body
- Made getBody() nullable, appropriate checks added
This commit is contained in:
Denis Zharkov
2015-03-18 19:58:15 +03:00
parent f4ed05cd90
commit eefea26d54
11 changed files with 130 additions and 12 deletions
@@ -0,0 +1,13 @@
class A {
init
}
class B {
Ann init
val x = 1
init
fun foo() {}
init
init
init {}
}