mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
18 lines
509 B
Text
18 lines
509 B
Text
interface ManualAttr
|
|
exposes []
|
|
imports []
|
|
|
|
# manually replicates the Attr wrapping that uniqueness inference uses, to try and find out why they are different
|
|
# It is very important that there are no signatures here! elm uses an optimization that leads to less copying when
|
|
# signatures are given.
|
|
|
|
map =
|
|
unAttr = \Attr _ foobar -> foobar
|
|
|
|
r = Attr unknown "bar"
|
|
|
|
s = Attr unknown2 { left : Attr Shared "foo" }
|
|
|
|
when True is
|
|
_ -> { y : r }
|
|
_ -> { y : (unAttr s).left }
|