insert type intention now only applicable in function names (KT-4950)

#KT-4950 Fixed
This commit is contained in:
Tal Man
2014-05-01 09:58:04 -04:00
committed by Nikolay Krasko
parent 442f47bbe5
commit 9679e3ce4a
4 changed files with 41 additions and 14 deletions
@@ -0,0 +1,6 @@
// IS_APPLICABLE: false
fun foo() {
val x = bar("<caret>x")
}
fun bar<T>(t: T): Int = 1
@@ -0,0 +1,6 @@
// IS_APPLICABLE: false
fun foo() {
val x = bar("x") { <caret>2 }
}
fun bar<T>(t: T, v : () -> Int): Int = 1