Change parsing rules for primary constructor

- Parse 'constructor' keyword before value arguments
- Allow unescaped annotations
This commit is contained in:
Denis Zharkov
2015-05-12 15:40:01 +03:00
parent d058a07ce2
commit 805a811d91
15 changed files with 1072 additions and 22 deletions
@@ -0,0 +1,25 @@
class Outer1 {
class Nested1
private Ann ()
}
class Outer2 {
class Nested2 private Ann
fun foo() {}
}
class Outer3 {
class Nested3 private Ann {}
fun foo()
}
class Outer4 {
class Nested3 private Ann() {}
fun foo()
}
class Outer4 {
class Nested3 private Ann() : Base()
fun foo()
}