Commit graph

3354 commits

Author SHA1 Message Date
Folkert
5debaf7c30 comments 2021-01-11 16:56:02 +01:00
Folkert
a8b0f481af improve decrement of recursive tag unions 2021-01-11 16:53:04 +01:00
Folkert
96f6b9a6f6 fix mono tests 2021-01-11 00:26:14 +01:00
Folkert
28e83f719d add assert 2021-01-10 21:52:13 +01:00
Folkert
0cee82d25b re-enable refcounting for recursive tags 2021-01-10 21:50:41 +01:00
Folkert
f3b8c707b1 update tests 2021-01-10 21:45:55 +01:00
Folkert
165672330d cast read pointer to recursive field 2021-01-10 21:43:33 +01:00
Folkert
c79e031a55 don't store with RecursivePointer layout 2021-01-10 21:33:53 +01:00
Folkert
3cbac76be8 panic on invalid non-recursive tag union 2021-01-10 01:51:55 +01:00
Folkert
47128414d4 don't doubly allocate 2021-01-09 20:19:00 +01:00
Folkert
63fd71ba6e dereference pointer to field 2021-01-09 19:56:44 +01:00
rvcas
5e69378850 fix: access at index errors 2021-01-09 11:21:52 -05:00
rvcas
56ff1fe463 feat: recursive tag unions store head on heap not stack 2021-01-09 10:54:53 -05:00
Folkert
78f653b85c fix typo 2021-01-07 23:19:17 +01:00
Folkert
ecd03186dc fix i128 bug 2021-01-07 20:55:31 +01:00
Folkert
e005dbde4c rename Unreachable -> Rethrow 2021-01-07 20:19:12 +01:00
Folkert
9dd02ea090 reenable test 2021-01-07 20:15:06 +01:00
Folkert
b9359ffd71 remove variable from mono patterns 2021-01-07 20:12:11 +01:00
rvcas
e34fa2fe8c fix(gen_list): forgot to use Nat in these tests as well 2021-01-06 07:42:01 -05:00
rvcas
565cf21e1e fix(tests): need to adjust tests after changing builtin function types 2021-01-05 09:18:24 -05:00
rvcas
62b496b221 feat(builtins): use Nat for List functions and counting functions 2021-01-05 01:08:56 -05:00
Richard Feldman
ba9448619a
Merge branch 'trunk' into list-eq 2021-01-04 22:53:14 -05:00
Folkert
1126957739 tag arguments are in InTypeParam position 2021-01-04 23:50:38 +01:00
Folkert
9227464de8 change type variable 2021-01-04 23:36:47 +01:00
Folkert
5256b1aa5c also default to i64/f64 for rigid vars 2021-01-04 23:36:17 +01:00
Folkert
b80865778e literal patterns should have type Int a or Float a 2021-01-04 23:35:29 +01:00
rvcas
27cfd4d7ad more test fixes 2021-01-04 15:18:49 -05:00
rvcas
0aca5ae89a fix: fmt issue in gen_num.rs 2021-01-04 10:03:40 -05:00
rvcas
74f76fc97b fix: needs a third argument 2021-01-04 09:54:51 -05:00
rvcas
b34436e5cb Merge branch 'trunk' into int_a_float_a 2021-01-04 09:53:45 -05:00
rvcas
a123bfa3ee fix: tests compile and repl_eval 2021-01-04 09:46:10 -05:00
Folkert
16abefa10d fix whitespace 2021-01-04 14:55:54 +01:00
Richard Feldman
fb95c72127
Merge branch 'trunk' into list-eq 2021-01-04 08:44:30 -05:00
Richard Feldman
07c9c962e4
Merge pull request #864 from rtfeldman/str-eq
Equality on Str
2021-01-04 08:43:30 -05:00
Folkert
504c3cddb9 comments 2021-01-03 20:32:55 +01:00
Folkert
26ce7b6ef0 clippy 2021-01-03 20:10:30 +01:00
Folkert
a7cf98df9b add == and != for lists 2021-01-03 20:09:28 +01:00
Chadtech
d3b569f6eb Reformatted some comments and rearranged things within the RocDict def 2021-01-03 13:17:03 -05:00
Folkert
23ed281345 clippy 2021-01-03 03:14:05 +01:00
Folkert
6749606450 add tests for RocStr clone 2021-01-03 03:12:49 +01:00
Folkert
0abc1cce15 make RocStr clone 2021-01-03 03:04:28 +01:00
Folkert
981a84ccee List.keepIf must consume its list argument 2021-01-02 23:17:50 +01:00
Folkert
2ac19fb6e3 add equality for strings 2021-01-02 18:50:29 +01:00
Folkert
6ed01f357a add tests 2021-01-02 18:01:55 +01:00
Folkert
bc5df97903 invoke in more cases 2021-01-02 17:51:04 +01:00
Chadtech
12d836bfb0 Many functions taken an allocator 2021-01-02 01:45:22 -05:00
Chadtech
00ec961bfe Switch method function names from snake case to camel case 2021-01-02 00:09:44 -05:00
Chadtech
f4a85160d1 Ran Zig fmt on dict.zig 2021-01-01 21:45:52 -05:00
Chadtech
2e1d1a7602 Re-arrange expected and found value in RocDict.init test to fix compile error 2021-01-01 21:44:45 -05:00
Chadtech
83cfbf9044 Merge branch 'trunk' of github.com:rtfeldman/roc into dict 2021-01-01 21:19:35 -05:00