mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Support unification of extension types with uninhabited branches
This commit is contained in:
parent
8a42d60ca2
commit
be853b65c5
4 changed files with 83 additions and 9 deletions
|
@ -0,0 +1,7 @@
|
|||
procedure Test.0 ():
|
||||
let Test.5 : Str = "abc";
|
||||
let Test.1 : [C [], C Str] = TagId(1) Test.5;
|
||||
let Test.3 : Str = UnionAtIndex (Id 1) (Index 0) Test.1;
|
||||
inc Test.3;
|
||||
dec Test.1;
|
||||
ret Test.3;
|
Loading…
Add table
Add a link
Reference in a new issue