pprint-kotlin icon indicating copy to clipboard operation
pprint-kotlin copied to clipboard

Does not handle nullable values

Open headinthebox opened this issue 7 months ago • 0 comments

@Serializable data class Bar( val x: Int, val y: Int? = null, val z: Int? )

println(pprint(Bar(x = 3, z = null)).plainText) ==> Bar(x = 3, null, null)

would expect

Bar(x = 3, z = null), or perhaps Bar(x = 3, y = null, z = null)

headinthebox avatar Aug 01 '24 04:08 headinthebox