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
Right(C2())
Right(C2())
Left(DecodingFailure at .extraField: type Case has no class/object/case named 'extraField'.)
In (1) C2 is correctly decoded (extraFieldC2 is ignored).
Same for (2), where the decoding stops before reaching extraField.
In (3) decoding fails.
The only difference between the inputs of (2) and (3) is the ordering of the fields in the Json object.
Expected behavior: (3) should decode as Right(C2()). This is what happens in Scala 2.