KT-4107 Data objects
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// !LANGUAGE: +DataObjects
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
|
||||
import java.io.Serializable
|
||||
|
||||
data <!CONFLICTING_JVM_DECLARATIONS!>object A<!> : Serializable {
|
||||
<!CONFLICTING_JVM_DECLARATIONS!>private fun readResolve(): Any<!> = this
|
||||
}
|
||||
|
||||
data object B : Serializable {
|
||||
private fun readResolve(): B = this
|
||||
}
|
||||
|
||||
data object C {
|
||||
private fun readResolve(): Any = this
|
||||
}
|
||||
Reference in New Issue
Block a user