Lambda to reference: check potential reference arguments by descriptors and not by names #KT-14420 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-24 19:19:53 +03:00
parent 97b45569fc
commit dc76f2a62f
4 changed files with 40 additions and 7 deletions
@@ -0,0 +1,9 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
fun foo() {
listOf(1).forEach { run { <caret>it.bar() } }
}
fun Int.bar() {
}