69c88a8a0a
'allopen' compiler plug-in can make data classes and their members open, which is a compilation error in usual case, but makes sense for Spring and other frameworks that generate proxy-classes.
14 lines
331 B
Kotlin
Vendored
14 lines
331 B
Kotlin
Vendored
// This test emulates 'allopen' compiler plugin.
|
|
|
|
@Suppress("INCOMPATIBLE_MODIFIERS")
|
|
open data class Test(
|
|
open val x: String,
|
|
open val y: String
|
|
)
|
|
|
|
// 1 GETFIELD Test\.x
|
|
// 1 GETFIELD Test\.y
|
|
|
|
// 6 INVOKEVIRTUAL Test\.getX
|
|
// 6 INVOKEVIRTUAL Test\.getY
|
|
// - componentN, copy$default, toString, hashCode, 2 times in equals |