Convert lambda to callable reference intention / inspection #KT-10903 Fixed

(cherry picked from commit b620099)
This commit is contained in:
Mikhail Glukhikh
2016-07-12 16:15:49 +03:00
committed by Mikhail Glukhikh
parent b5bdb070a0
commit 220141ab2b
54 changed files with 627 additions and 5 deletions
@@ -0,0 +1,11 @@
// IS_APPLICABLE: false
interface Transformer {
fun transform(x: Int = 0, f: (Int) -> Int) = f(x)
}
class TransformerImpl : Transformer
fun bar(x: Int) = x * x
val y = TransformerImpl().transform { <caret>bar(it) }