Create from Usages: Do not suggest on type-mismatched expressions which are not call arguments
#KT-14143 Fixed
This commit is contained in:
+11
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user