Lambda --> reference: correct handling of parameter-less function

Issue #KT-15556 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-03-10 16:32:19 +03:00
parent b6974a88c5
commit 19db4869e6
6 changed files with 28 additions and 3 deletions
@@ -0,0 +1,9 @@
// IS_APPLICABLE: true
// WITH_RUNTIME
fun foo() {
listOf(1).forEach { run(it::bar) }
}
fun Int.bar() {
}