-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels