`debug` is broken for records with duplicate fields
LightAndLight opened this issue · comments
This code panics:
main : IO ()
main = println <| debug { a = 1, a = true }
it's probably because DebugRecordFields
doesn't delete fields after it uses them. So it renders the a : Int
field, but it tries render the a : Bool
field by treating it as the a : Int
field.