Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/notExactArgument.kt
T
Toshiaki Kameyama 607325c6e5 Add "Round using roundToInt/roundToLong" quick fix
#KT-30389 Fixed
2019-04-11 18:58:05 +03:00

12 lines
300 B
Kotlin
Vendored

// "Create function 'synchronized'" "false"
// 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
}
}