Files
kotlin-fork/plugins/kotlinx-serialization/testData/diagnostics/GeneratedSerializerInaccessible.kt
T
Leonid Startsev dbb7ab1760 Add @Deprecated annotation to a synthetic $serializer class
in K2 so it matches K1 behavior.

Deprecation is required, so the declaration will not be visible to user in completion in the IDE.

#KT-65757 Fixed
2024-03-19 10:57:27 +00:00

15 lines
278 B
Kotlin
Vendored

// FIR_IDENTICAL
// WITH_STDLIB
// SKIP_TXT
import kotlinx.serialization.*
@Serializable
class A
fun foo() {
A.<!DEPRECATION_ERROR!>`$serializer`<!>
A.<!DEPRECATION_ERROR!>`$serializer`<!>.descriptor
A(<!TOO_MANY_ARGUMENTS!>0<!>, <!TOO_MANY_ARGUMENTS!>null<!>)
}