6fdbc38cf1
While this fix only changes label name, it's important for proper lambda resolution because receiver is set for a lambda only in presence of a label This commit fixes a lot of checkType calls in diagnostic tests
15 lines
169 B
Kotlin
Vendored
15 lines
169 B
Kotlin
Vendored
class A {
|
|
fun bar() {}
|
|
}
|
|
|
|
infix fun (() -> Unit).foo(x: A.() -> Unit) {}
|
|
|
|
fun main() {
|
|
{
|
|
return@foo
|
|
} foo {
|
|
bar()
|
|
return@foo
|
|
}
|
|
}
|