Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/call/notExactArgument.kt

11 lines
264 B
Kotlin
Vendored

// "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
}
}