Files
kotlin-fork/nj2k/testData/newJ2k/assertStatement/assertNotNull.kt
T
Ilya Kirillov d0f0b9e355 New J2K: do not allow field and method declarations to be internal
For internal members new names are generated,
So, references to them from Java will be broken
2019-10-12 12:50:32 +03:00

10 lines
223 B
Kotlin
Vendored

internal abstract class C {
fun foo() {
val s1 = f()!!
val s2 = g() ?: error("g should not return null")
val h = s2.hashCode()
}
abstract fun f(): String?
abstract fun g(): String?
}