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

12 lines
297 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
open class Base(val bar: String)
class Foo(bar: String) : Base(bar) {
fun something() = (bar as java.lang.String).toUpperCase()
}
fun box() = Foo("ok").something()