6783621eb0
`FirDeclarationGenerationExtension.generateClassLikeDeclaration` was split into two functions: one for generating top level classes, and one for nested classes. Such change reduces verbosity and error-proness of this extension and also allows to smoothly run plugins on local classes ^KT-55248 Fixed
21 lines
387 B
Kotlin
Vendored
21 lines
387 B
Kotlin
Vendored
// TARGET_BACKEND: JVM_IR
|
|
// WITH_STDLIB
|
|
|
|
import kotlinx.serialization.*
|
|
|
|
fun local(): String {
|
|
@Serializable
|
|
data class Carrier(val i: Int)
|
|
|
|
return Carrier.serializer().descriptor.toString()
|
|
}
|
|
|
|
fun box(): String {
|
|
val expected = "local.Carrier(i: kotlin.Int)"
|
|
val actual = local()
|
|
if (expected != actual) {
|
|
return "Fail: $actual"
|
|
}
|
|
return "OK"
|
|
}
|