Create from Usages: Do not suggest on type-mismatched expressions which are not call arguments

#KT-14143 Fixed
This commit is contained in:
Alexey Sedunov
2016-10-04 16:23:36 +03:00
parent e4dc2ae367
commit da1178fe0c
4 changed files with 19 additions and 3 deletions
@@ -0,0 +1,11 @@
// "Create function 'synchronized'" "false"
// ACTION: Convert expression to 'Int'
// ERROR: Type mismatch: inferred type is Float but Int was expected
// WITH_RUNTIME
fun test() {
var value = 0
synchronized(value) {
value = <caret>10 / 1f
}
}