elm/tests/good/Unify/NonHomogeneousRecords.elm

8 lines
97 B
Elm

type Thing = { x:Float, y:Float }
f : Thing -> Thing
f t =
let x = t.x
y = t.y
in t