Open keigoi opened 7 years ago
Currently, only function application is allowed in non-linear context. Loose this restriction.
[%linval Cons(let x = (...no linear variable here ..) in (.. data constructor with linvar ..), !!s)]
[%linval object method f = !!s end]
It is also nice to allow as-pattern for non-linear subpattern
match%lin exp with | C(V(x,y) as z, #s) -> ...
Currently, only function application is allowed in non-linear context. Loose this restriction.