Add recovery for properties without name
If property name is parsed on the next line and declaration is invalid (no receiver/type/initializer), treat that name as it does not belong to property #KT-12987 In Progress
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class A {
|
||||
private val
|
||||
// private is parsed as val's identifier
|
||||
private fun foo1() {
|
||||
}
|
||||
|
||||
private val
|
||||
private abstract inline fun foo2()
|
||||
|
||||
private val
|
||||
fun foo3() {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user