Files
kotlin-fork/nj2k/testData/newJ2k/annotations/serialVersionUID.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

17 lines
276 B
Kotlin
Vendored

import java.io.Serializable
class Bar : Serializable {
var foobar = 0
companion object {
private const val serialVersionUID: Long = 0
}
}
class Foo {
var foobar = 0
companion object {
private const val serialVersionUID: Long = 0
}
}