You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correctly handle serial name conflict for different classes
in SerializersModule.overwriteWith.
Previous KClass should be removed from the map as well to avoid creating module
with asymmetric mappings.
Fixes#2820
assertFailsWithMessage<IllegalArgumentException>("Multiple polymorphic serializers in a scope of 'class kotlin.Any' have the same serial name 'C'") { c1 + c2 }
227
+
val module = c1 overwriteWith c2
228
+
// C should not be registered at all, C2 should be registered both under "C" and C2::class
0 commit comments