I'm not sure if this is intentional or not, but fields can shadow each other AND you can actually access either value if they have different types. I'm not sure if this is on purpose or not:
shadowy : Record [("nil", Int), ("nil", String)]
shadowy = [ "nil" := 0, "nil" := "" ]
underneath : String
underneath = shadowy . "nil"
on_top : Int
on_top = shadowy . "nil"
That defines underneath to be the String "" and on_top to be the Int 0.
I'm not sure if this is intentional or not, but fields can shadow each other AND you can actually access either value if they have different types. I'm not sure if this is on purpose or not:
That defines
underneathto bethe String ""andon_topto bethe Int 0.