Files
kotlin-fork/compiler/testData/codegen/box/classLiteral/bound/simple.kt
T
2016-11-09 21:41:12 +03:00

9 lines
236 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun box(): String {
val x: CharSequence = ""
val klass = x::class
return if (klass == String::class) "OK" else "Fail: $klass"
}