Files
kotlin-fork/compiler/testData/codegen/box/ranges/contains/genericCharInRangeLiteral.kt
T
2018-06-09 19:15:38 +03:00

8 lines
147 B
Kotlin
Vendored

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