Ayaz Hafiz
78dc82867a
Report errors for identifiers not bound in all patterns of a branch
2022-07-21 12:15:05 -04:00
Ayaz Hafiz
ce8b50caea
Support bound variables in multiple patterns
2022-07-21 11:40:09 -04:00
Ayaz Hafiz
bf8fc0d0de
Permit binding variables multiple itmes in when branches
2022-07-21 11:06:40 -04:00
Richard Feldman
e7a76fba0f
Merge remote-tracking branch 'origin/trunk' into update-wording
2022-07-21 11:01:08 -04:00
Folkert
2e07c3f617
show preceding comment in failed test messages
2022-07-21 10:42:58 -04:00
Folkert
2caf58dfd2
show preceding comment in test panic messages
2022-07-21 10:42:58 -04:00
Folkert
5a93da5a11
some work on expect comment regions
2022-07-21 10:42:57 -04:00
Folkert
7597d11b59
parse the region of the preceding comment for an expect
2022-07-21 10:42:57 -04:00
Richard Feldman
35733d51dc
Tweak expectation panic message wording
2022-07-21 10:42:57 -04:00
Folkert
9d294b459e
thread top-level expect region through
2022-07-21 10:42:57 -04:00
Folkert
7e5476aa58
report panicking tests (not pretty yet)
2022-07-21 10:42:57 -04:00
Richard Feldman
3129225951
Only print an inc_dec warning in debug builds
2022-07-21 10:42:57 -04:00
Folkert
b6f1fd6f40
constrain expects in the right order
2022-07-21 10:42:57 -04:00
Folkert
c2206f3e4d
substitute into expect
2022-07-21 10:42:56 -04:00
Ayaz Hafiz
29b37a10df
Correctly use module name in linked functions
2022-07-21 09:02:04 -04:00
Ayaz Hafiz
7ef03440ef
Fully qualify values exported to host linking
...
Previously we were only handing off exposed values based on their
inner-module ID, but actually the fully-resolved ID is needed, because
it's reasonable that two identical names from different modules are
exposed to the host.
Closes #3483
2022-07-21 09:02:03 -04:00
Folkert de Vries
f9a5113210
Merge pull request #3588 from rtfeldman/roc-list-from-iter-part2
...
RocList::from_iter for zero-size elements & fix over-allocation
2022-07-21 12:06:25 +02:00
Joshua Warner
31455f5fbd
Remove first newline and indent from string
2022-07-20 19:20:48 -07:00
Joshua Warner
61b1ab059a
Add test for removing indents in multiline strings
2022-07-20 19:20:10 -07:00
Richard Feldman
8f7e33f526
Advise running roc run
if given "main.roc"
2022-07-20 17:01:32 -04:00
Richard Feldman
eacc65e07f
Revise message for trying to run non-app modules
2022-07-20 16:58:52 -04:00
Richard Feldman
a0237d6aa3
Revise unexpected pattern report
2022-07-20 10:49:06 -04:00
Richard Feldman
55b86f3fe2
Update a test to use new wording
2022-07-20 10:49:06 -04:00
Richard Feldman
1e856d0766
Update repl tests
2022-07-20 10:49:06 -04:00
Richard Feldman
6aaa940ddf
Update reporting tests and snapshots
2022-07-20 10:49:06 -04:00
Richard Feldman
024b0c85f8
Report 'a fraction' instead of 'a frac'
2022-07-20 10:49:05 -04:00
Richard Feldman
3972664e48
Rename Category::Float to Category::Frac
2022-07-20 10:49:05 -04:00
Richard Feldman
e389b23e4b
Update wording on arg mismatch
2022-07-20 10:49:05 -04:00
Brian Carroll
b14d9b5244
Fix over-allocation in List::from_iter
2022-07-20 08:53:47 +01:00
Brian Carroll
ba7b98bdaa
Special-case RocList::from_iter for zero-size elements
2022-07-20 08:25:57 +01:00
Folkert de Vries
71edc445d2
Merge pull request #3587 from rtfeldman/i3571
...
Compile higher-order low-level calls that take functions with no closure args
2022-07-20 08:55:54 +02:00
Joshua Warner
a1512dfd79
Introduce State::advance_mut and State::consume_mut to simplify things
2022-07-19 19:20:38 -07:00
Joshua Warner
7a594901dd
Refactor: inline simple advance_state macro
2022-07-19 17:01:33 -07:00
Brian Carroll
8e4fd629eb
Wasm: Handle closure data that's a lambda set with no closure data
2022-07-20 00:28:36 +01:00
Ayaz Hafiz
2cdb951752
Compile higher-order low-level calls that take functions with no closure args
...
Closes #3571
2022-07-19 15:50:36 -04:00
Ayaz Hafiz
8f5580c0a5
Clippy
2022-07-19 15:04:01 -04:00
Ayaz Hafiz
b4f45215ea
Fix solve tests
2022-07-19 15:02:52 -04:00
Ayaz Hafiz
3a57af8731
Format Json.roc
2022-07-19 14:30:20 -04:00
Ayaz Hafiz
cf158d21ed
Fix comment
2022-07-19 14:30:20 -04:00
Ayaz Hafiz
7586a8a083
Check complete ability implementations during canonicalization
2022-07-19 14:30:20 -04:00
Ayaz Hafiz
37ab06b0a3
Reject implementations that don't point to abilities
2022-07-19 14:30:19 -04:00
Ayaz Hafiz
a53de2e05c
Add a comment
2022-07-19 14:30:19 -04:00
Ayaz Hafiz
e4af8af1a3
Report duplicate implementations for ability members
2022-07-19 14:30:19 -04:00
Ayaz
7b9b855dcc
Merge pull request #3579 from rtfeldman/can-abilities
...
Canonicalize syntactic abilities
2022-07-19 13:30:12 -05:00
Ayaz Hafiz
666becad87
Clippy
2022-07-19 08:14:12 -04:00
Folkert de Vries
9beb44c140
Merge pull request #3583 from rtfeldman/default-test-main
...
Default `roc test` to main.roc
2022-07-19 09:22:08 +02:00
Brendan Hansknecht
7526f7069b
Revert "use general roc store instead of specific llvm store"
...
Not sure why but this is wrong for some pointer reasons?
This reverts commit b190b09b78
.
2022-07-18 22:35:52 -07:00
Brendan Hansknecht
057e4ea57a
ensure sret is actually pointer type instead of just assuming
2022-07-18 22:35:39 -07:00
Brendan Hansknecht
8bc6131b3d
Merge branch 'trunk' into gen-dev/quicksort
2022-07-18 22:05:45 -07:00
Brendan Hansknecht
9c35d29c24
correct sret to use the element type and not the pointer type
2022-07-18 22:04:34 -07:00