mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-20 23:07:13 +03:00
821 B
821 B
Duplicate names in scratch file.
.> builtins.merge
Term and ability constructor collisions should cause a parse error.
structural ability Stream where
send : a -> ()
Stream.send : a -> ()
Stream.send _ = ()
Term and type constructor collisions should cause a parse error.
structural type X = x
X.x : a -> ()
X.x _ = ()
Ability and type constructor collisions should cause a parse error.
structural type X = x
structural ability X where
x : ()
Field accessors and terms with the same name should cause a parse error.
structural type X = {x : ()}
X.x.modify = ()
X.x.set = ()
X.x = ()
Types and terms with the same name are allowed.
structural type X = Z
X = ()
.> add
.> view X