Lambda to reference: check potential reference arguments by descriptors and not by names #KT-14420 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
listOf(1).forEach { run { <caret>bar(it) } }
|
||||
}
|
||||
|
||||
fun bar(i: Int) {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo() {
|
||||
listOf(1).forEach { run { <caret>it.bar() } }
|
||||
}
|
||||
|
||||
fun Int.bar() {
|
||||
}
|
||||
Reference in New Issue
Block a user