Files
kotlin-fork/compiler/testData/psi/primaryConstructor/recoveryNestedClassAmbiguity.kt
T
Denis Zharkov 805a811d91 Change parsing rules for primary constructor
- Parse 'constructor' keyword before value arguments
- Allow unescaped annotations
2015-05-20 09:24:54 +03:00

26 lines
325 B
Kotlin

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()
}