Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/notExactArgument.kt
T
2020-09-03 18:04:55 +02:00

13 lines
355 B
Kotlin
Vendored

// "Create function 'synchronized'" "false"
// ACTION: Convert assignment to assignment expression
// ACTION: Convert expression to 'Int'
// ACTION: Round using roundToInt()
// ERROR: Type mismatch: inferred type is Float but Int was expected
// WITH_RUNTIME
fun test() {
var value = 0
synchronized(value) {
value = <caret>10 / 1f
}
}