4725dd3028
It's needed when declarations are parsed as a part of previous expression (see tests) Currently we apply this kind of recovery in a conservative way, only when declaration starts at the next line, and while the condition could be relaxed, there's no need to do this #KT-4948 Fixed #KT-7118 Fixed
28 lines
287 B
Kotlin
Vendored
28 lines
287 B
Kotlin
Vendored
fun foo(x: Any) {
|
|
x.
|
|
val foo = 1
|
|
|
|
x.
|
|
fun bar() = 2
|
|
|
|
x.
|
|
fun String.() = 3
|
|
|
|
var a = 24.
|
|
var b = 42.0
|
|
}
|
|
|
|
class A {
|
|
val z = "a".
|
|
val x = 4
|
|
|
|
val y = "b".
|
|
fun baz() = 5
|
|
|
|
val q = "c".
|
|
fun String.() = 6
|
|
|
|
var a = 24.
|
|
var b = 42.0
|
|
}
|