Files
kotlin-fork/compiler/testData/codegen/bytecodeText/properties/openDataClass.kt
T
Dmitry Petrov 69c88a8a0a PSI2IR KT-41284 use getters for open data class property values
'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.
2020-12-09 10:29:09 +03:00

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