Skip to content

Commit

Permalink
Sealed subclasses are now not illegal - but handled by registering th…
Browse files Browse the repository at this point in the history
…e child serializers (polymorphically), remove the test for them.
  • Loading branch information
pdvrieze committed Mar 16, 2023
1 parent c982e48 commit 28c8fcd
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,6 @@ class JsonProhibitedPolymorphicKindsTest : JsonTestBase() {
@Serializable
enum class MyEnum

@Test
fun testSealedSubclass() {
assertFailsWith<IllegalArgumentException> {
Json(true) {
subclass(Base::class)
}
}
assertFailsWith<IllegalArgumentException> {
Json(false) {
subclass(Base::class)
}
}
}

@Test
fun testPrimitive() {
assertFailsWith<IllegalArgumentException> {
Expand Down

0 comments on commit 28c8fcd

Please sign in to comment.