Files
kotlin-fork/compiler/testData/codegen/box/ranges/contains/genericCharInRangeLiteral.kt
T
2019-11-19 11:00:09 +03:00

8 lines
152 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class Cell<T>(val value: T)
fun box(): String =
if (Cell('a').value in 'a'..'z')
"OK"
else
"fail"