Files
kotlin-fork/js/js.translator/testData/native/cases/kt2209.kt
T
2014-03-11 20:04:00 +04:00

24 lines
320 B
Kotlin

package foo
native
trait Chrome {
val extension: Extension
}
native
trait Extension {
val lastError: LastError?
}
native
trait LastError {
val message: String
}
native
val chrome: Chrome = noImpl
fun box(): Boolean {
val lastError = chrome.extension.lastError?.message
return lastError == null
}