ReplaceItWithExplicitFunctionLiteralParamIntention - better caret position

This commit is contained in:
Valentin Kipyatkov
2015-04-28 21:59:07 +03:00
parent 01a8ff0860
commit 1daf12cf70
4 changed files with 4 additions and 4 deletions
@@ -1,2 +1,2 @@
fun applyTwice<A>(f: (A) -> A, x: A) = f(f(x))
val x = applyTwice({ <caret>it -> it + 1 }, 40)
val x = applyTwice({ it -> <caret>it + 1 }, 40)