2ae2f09fee
Phase COMPILER_REQUIRED_ANNOTATIONS causes errors in the kotlinx serialization tests: org.jetbrains.kotlin.fir.symbols.FirLazyResolveContractViolationException: `lazyResolveToPhase(COMPILER_REQUIRED_ANNOTATIONS)` cannot be called from a transformer with a phase COMPILER_REQUIRED_ANNOTATIONS. `lazyResolveToPhase` can be called only from a transformer with a phase which is strictly greater than a requested phase; i.e., `lazyResolveToPhase(A)` may be only called from a lazy transformer with a phase B, where A < B. This is a contract of lazy resolve
21 lines
541 B
Kotlin
Vendored
21 lines
541 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// FIR_IDENTICAL
|
|
// FILE: test.kt
|
|
import kotlinx.serialization.*
|
|
|
|
class NonSerializable
|
|
|
|
@Serializable
|
|
class Basic(val foo: <!SERIALIZER_NOT_FOUND("NonSerializable")!>NonSerializable<!>)
|
|
|
|
@Serializable
|
|
class Inside(val foo: List<<!SERIALIZER_NOT_FOUND("NonSerializable")!>NonSerializable<!>>)
|
|
|
|
@Serializable
|
|
class Inside2(val foo: List<List<<!SERIALIZER_NOT_FOUND("NonSerializable")!>NonSerializable<!>>>)
|
|
|
|
@Serializable
|
|
class WithImplicitType {
|
|
<!SERIALIZER_NOT_FOUND("NonSerializable")!>val foo = NonSerializable()<!>
|
|
}
|