Commit graph

12 commits

Author SHA1 Message Date
Ayaz Hafiz
163c6b39d6
Unify type alias "real variables"
Turns out that we can't always assume that a successful unification of
type alias type variables means that those aliases had the same real
type from the start. Because type variables may contain unbound type
variables and grow during their unification (for example,
`[InvalidNumStr]a ~ [ListWasEmpty]b` unify to give `[InvalidNumStr,
ListWasEmpty]`), the real type may grow as well.

For this reason, continue to explicitly unify alias real types for now.
We can get away with not having to do so when the type variable
unification causes no changes to the unification tree at all, but we
don't have a great way to detect that right now (maybe snapshots?)

Closes #2583
2022-04-05 11:21:52 -04:00
Tom Dohrmann
788c8a6af2 reimplement RocList and RocStr 2022-02-23 16:02:13 +01:00
Jan Van Bruggen
1e9d2d1239 Remove accidental trailing spaces 2022-01-18 22:25:46 -07:00
Folkert
007d777865 flesh out api for RocResult 2021-12-27 20:01:19 +01:00
Theo Felippe
10eab4b785 implemented Result.isErr 2021-11-13 08:29:40 +00:00
Theo Felippe
cb9ec369fe working implementation 2021-11-12 10:08:39 +00:00
Theo Felippe
dfd14f8e49 added gen test 2021-11-11 08:23:40 +00:00
Brendan Hansknecht
360974398a Merge test_dev, test_wasm, and test_wasm_util into test_gen 2021-11-08 19:31:20 -08:00
Folkert
71c0a325ee wasm test harnass 2021-08-29 00:36:16 +02:00
Folkert
2faeda29f2 Err with void type 2021-03-06 23:07:03 +01:00
Folkert
ef362ada26 change headers 2021-03-01 15:15:05 +01:00
Folkert
3e3fe4fc7a move test files 2021-03-01 14:59:47 +01:00
Renamed from compiler/gen/tests/gen_result.rs (Browse further)