Folkert
a565ca79b8
builtins are not technically imported
2020-11-02 23:19:31 +01:00
Folkert
40bf9be1e2
fix bugs exposed by reporting tests
2020-10-30 22:15:28 +01:00
Folkert
5017a456be
for now, allow work to be done twice
...
the scheduler can request that the same file is parsed/canonicalized/etc twice
we need to find a good solution so that no work is repeated
2020-10-30 21:57:54 +01:00
Folkert
9ff882751a
disable a test for now
2020-10-17 12:35:53 +02:00
Folkert
c7b251d6b4
Merge remote-tracking branch 'origin/trunk' into gen-modules
2020-10-08 01:29:32 +02:00
Folkert
f857203673
Merge remote-tracking branch 'origin/trunk' into recursive-layouts
2020-09-07 16:53:15 +02:00
Sébastien Besnier
72497a1916
add test for tag with no args and boolean
2020-09-05 09:17:42 +02:00
Richard Feldman
0bdc7f2f74
Fix CLI underline character on Windows
2020-09-03 20:24:09 -04:00
Richard Feldman
58e9fa1255
Update formatting tests
2020-08-31 20:42:28 -04:00
Folkert
f9cf4ea371
recursive tag unions
2020-08-31 14:29:09 +02:00
Richard Feldman
3f0b08a992
Have Stmt::new accept LayoutCache
2020-08-12 23:14:06 -04:00
Folkert
4caef70668
Merge remote-tracking branch 'origin/trunk' into refcount
2020-08-09 13:49:13 +02:00
Richard Feldman
3fe2a4e3fd
Drop unused jump_counter
2020-08-08 19:53:21 -04:00
Folkert
078c6df677
Merge remote-tracking branch 'origin/trunk' into refcount
2020-08-08 22:34:14 +02:00
Richard Feldman
c8e647ccfc
Use is_zero_sized to remove lots of ptr_bytes
2020-08-07 20:08:06 -04:00
Folkert
378fe1d5d1
phase out old mono stuff
2020-08-06 21:05:14 +02:00
Folkert
d46f6de52d
fewer clones
2020-07-26 00:03:08 +02:00
Richard Feldman
db3dbe3551
Reproduce parse bug
2020-07-23 21:36:49 -04:00
Folkert
a82cc7f28f
fix weird region in error messages
2020-07-21 16:20:03 +02:00
Folkert
b45b39af5e
optional fields improvements
2020-07-21 15:25:21 +02:00
Folkert
e93c04a8ce
improved error messages for function definitions
2020-07-20 21:38:21 +02:00
Folkert
1d2251b064
add reporting error message tests
2020-07-20 16:05:53 +02:00
Richard Feldman
f39b194d45
Update tests for new pattern regions
2020-07-17 19:49:27 -04:00
Folkert
331a8ed5eb
error message for record update and missing module
2020-07-14 23:37:19 +02:00
Folkert
d7b2dc7a3b
fix test failures caused by def reordering
2020-07-11 02:01:23 +02:00
Folkert
b7c35665aa
report empty non-base-10 integers
2020-07-08 14:18:02 +02:00
Richard Feldman
1cd49689c2
Merge remote-tracking branch 'origin/trunk' into low-level-ops
2020-07-07 21:09:50 -04:00
Richard Feldman
e78064c037
Merge branch 'trunk' into number-error-reporting
2020-07-07 18:48:39 -04:00
Folkert
edb79b8fce
pretty error messages for floats
2020-07-07 22:53:54 +02:00
Folkert
9d67b11c0d
pretty error messages for integers
2020-07-07 22:10:23 +02:00
Folkert
58dfeba043
accept a newline and body when patterns are different
2020-07-07 17:26:45 +02:00
Folkert
e595c14fae
wip
2020-07-06 20:38:10 +02:00
Folkert
b7d689226c
cover all parsed patterns with an error message
...
but, some invalid patterns are not parsed as expected. See https://github.com/rtfeldman/roc/issues/399
2020-07-04 20:39:49 +02:00
Folkert
0c7a4179aa
report malformed int and float patterns
2020-07-04 20:29:37 +02:00
Folkert
667233a00d
report error for invalid alias argument patterns
2020-07-03 16:54:28 +02:00
Folkert
744b8ce32b
fix todos regarding InvalidCycle
2020-07-03 15:42:24 +02:00
Folkert
0cfb16c7d5
implement canonicalization error when signature pattern does not match definition pattern.
2020-07-02 23:24:10 +02:00
Richard Feldman
8c96d12661
Merge trunk
2020-06-29 22:10:46 -04:00
Folkert
3fc2323891
fix recursion bug
...
previously, `Cons 1 (Cons {} Nil)` would get inferred as ConsList Int, because only the outer layer of a tag union was checked with the recursive tag union. Now this is done continually.
2020-06-29 00:18:50 +02:00
Richard Feldman
baa3debae2
Update cyclic alias test
2020-06-27 16:49:48 -04:00
Richard Feldman
55045e1cea
Fix some tests and docs
2020-06-25 22:11:46 -04:00
Richard Feldman
7e7c6ef4af
Drop obsolete symbol_counter field
2020-05-04 20:32:21 -04:00
Richard Feldman
ee31eac0c5
Code gen toplevel module functions
2020-05-01 19:30:55 -04:00
Folkert
848764cb25
improve formatting of records in pattern exhaustiveness errors
2020-04-23 21:49:24 +02:00
Folkert
c54d61c854
fix formatting of ctor patterns in errors
2020-04-23 20:30:42 +02:00
Folkert
b2a713915b
fix ordering bug in pattern exhaustiveness
2020-04-23 20:12:40 +02:00
Folkert
f0aa598ff9
use tag id instead of name in exhaustiveness checking
2020-04-21 16:24:43 +02:00
Folkert
aea48f703a
working parser error
2020-04-16 01:30:28 +02:00
Folkert
719ef5b70e
parse error infrastructure
2020-04-15 21:10:42 +02:00
Folkert
e21cdfc689
bring parse errors into the reporting tests
2020-04-15 19:49:05 +02:00