[Parcelize] Ignore all sealed classes in Parcelize FIR generator

Sealed classes are inherently abstract and should not have Parcelable
functions added via the FIR declaration generator.

#KT-59112 Fixed
This commit is contained in:
Brian Norman
2023-06-06 13:33:42 -05:00
committed by Space Team
parent 830c78773c
commit b595328192
4 changed files with 10 additions and 5 deletions
@@ -15,6 +15,9 @@ class Final(val foo: String) : Parcelable
@Parcelize
sealed class Sealed(val foo: String) : Parcelable {
class X : Sealed("")
sealed class Inner : Sealed("") {
<!ABSTRACT_MEMBER_NOT_IMPLEMENTED!>class Y<!> : Inner()
}
}
class Outer {
@@ -15,6 +15,9 @@ class Final(val foo: String) : Parcelable
@Parcelize
sealed class Sealed(val foo: String) : Parcelable {
class X : Sealed("")
sealed class Inner : Sealed("") {
<!ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED!>class Y<!> : Inner()
}
}
class Outer {