LightAndLight / ipso

A functional scripting language.

Home Page:https://ipso.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`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.