Commit graph

174 commits

Author SHA1 Message Date
Richard Feldman
dd460fb818
Use single-threaded builds in tests 2022-05-05 14:42:36 -04:00
Ayaz Hafiz
89757dc31f Remove MonoProblem 2022-04-28 20:34:04 -04:00
Ayaz Hafiz
9dac9e4bc2 Coalesce 2022-04-28 20:34:03 -04:00
Ayaz Hafiz
7ec14ab76f Fix test 2022-04-28 20:33:48 -04:00
Folkert de Vries
0dd04787fd
Merge pull request #2972 from rtfeldman/exhaustiveness-bugs
exhaustiveness bug tests
2022-04-28 23:48:51 +02:00
Ayaz Hafiz
9429e50814
Test for 2778
Closes #2778
2022-04-28 16:06:51 -04:00
Folkert
622c6f3248
Merge remote-tracking branch 'origin/trunk' into scope-smarter-storage 2022-04-27 19:45:09 +02:00
Jared Cone
443efc4eb8
Handle ListEnd error 2022-04-27 05:57:01 -07:00
Richard Feldman
6da39aa296
Merge pull request #2917 from rtfeldman/move-exhaustiveness-checking
Moves exhaustiveness checking to type solving phase
2022-04-25 20:55:05 -04:00
Ayaz Hafiz
fe8eb38d89
Catch non-exhaustive open unions 2022-04-25 19:04:10 -04:00
Ayaz Hafiz
85e3373d8b
Move exhaustiveness checking to type checking 2022-04-25 19:04:09 -04:00
Richard Feldman
85e7969c2d
Replace references to "global tag" with "tag" 2022-04-25 17:04:34 -04:00
Ayaz
e736adaa24
Merge pull request #2952 from rtfeldman/ability-unused-method-reporting
Ability unused method reporting
2022-04-25 15:53:06 -04:00
Folkert
6028507dff
Merge remote-tracking branch 'origin/trunk' into scope-smarter-storage 2022-04-25 21:33:20 +02:00
Folkert
a0d688bfb7
stop reporting unused ability members 2022-04-25 20:45:54 +02:00
Ayaz
ccaddcebbb
Merge branch 'trunk' into remove-private-tags 2022-04-25 13:14:42 -04:00
Ayaz Hafiz
f1dc9c8298
Opaques take @ : %s/\$\([A-Z]\)/@\1/g 2022-04-25 12:26:38 -04:00
Ayaz
53c8dee4ed
Merge pull request #2926 from rtfeldman/matrix-correct-mutual-type-alias
Matrix correct mutual type alias
2022-04-25 11:19:59 -04:00
Ayaz Hafiz
7ea4d7171b
Remove private tags reporting tests 2022-04-25 11:12:16 -04:00
Ayaz Hafiz
41259104b8
Format 2022-04-24 13:03:17 -04:00
Ayaz
64ed7eea95
Merge branch 'trunk' into fix-when-branch-solving 2022-04-24 12:19:22 -04:00
Folkert
fe76858e2d
an error message that was changed is now what it was again 2022-04-24 17:43:34 +02:00
Folkert
452447232f
bitvec all the things 2022-04-24 02:18:43 +02:00
Folkert
ca072b6625
add function references test 2022-04-23 22:15:17 +02:00
Ayaz Hafiz
27a421fce6
Fix reporting test 2022-04-23 10:57:30 -04:00
Ayaz Hafiz
9a341e3d75
Improve non-exhaustive typechecking errors
We will replace this with proper exhaustiveness checking when we have
that in the typechecking phase, but for now this should do.
2022-04-23 10:56:54 -04:00
Ayaz Hafiz
935a484c71
Fix compile error 2022-04-23 10:56:54 -04:00
Ayaz Hafiz
633bdd5520
Fix failing reporting tests 2022-04-23 10:56:54 -04:00
Ayaz Hafiz
fd5b682e48
Disable reporting tests for CI checking 2022-04-23 10:56:53 -04:00
Ayaz Hafiz
7c0c0ef02a
Add test from #2899 2022-04-23 10:56:53 -04:00
Folkert
32edd55d3d
sanity check 2022-04-23 15:32:15 +02:00
Folkert
7b234911ac
do the work 2022-04-22 23:47:43 +02:00
Jared Cone
f097a4ffdb
Updated new tests 2022-04-20 22:59:28 -07:00
Jared Cone
497b8c114e
Updated new tests 2022-04-20 22:02:13 -07:00
Jared Cone
bfbd810ae6
Updated new tests 2022-04-20 21:25:12 -07:00
Jared Cone
d20542efae
Updated tests to use deterministic tmp dir 2022-04-20 21:25:12 -07:00
Jared Cone
66009c4b3c
Updated unit tests 2022-04-20 21:25:11 -07:00
Ayaz Hafiz
80dc50763e
Using abilities as types is illegal, but we can still compile them
Closes #2881
2022-04-20 17:46:18 -04:00
Ayaz Hafiz
cbfd76380a
Improve ability generalization error message 2022-04-20 17:45:41 -04:00
Ayaz Hafiz
9d71a3d1ac
Generalizing ability type instance to ability is illegal
Closes #2881
2022-04-20 17:45:40 -04:00
Ayaz Hafiz
bd6078a34a
Fix reporting tests 2022-04-20 17:43:17 -04:00
Folkert de Vries
30731da716
Merge pull request #2892 from rtfeldman/i/2878
Explicitly disallow ability definitions in nested scopes
2022-04-20 14:51:21 +02:00
Richard Feldman
b35ff3add3
cargo fmt 2022-04-19 20:53:45 -04:00
Richard Feldman
85d30a541d
Update reporting tests 2022-04-19 20:53:45 -04:00
Richard Feldman
fdb378f859
Drop extraneous space before newline 2022-04-19 20:53:44 -04:00
Ayaz
5188f8f7df
Merge branch 'trunk' into i/2878 2022-04-18 21:46:23 -04:00
Ayaz Hafiz
f129777115
Explicitly disallow ability definitions in nested scopes
Abilities can only be defined on the toplevel of a module. There is a
technical reason to this, which is that during type solving we must
introduce all abilities at the very beginning, and we need to make sure
ranks are correct. But there is a practical reason as well, which is
that nested ability definitions don't seem to be very useful.

Note that specializations can be nested, and are allowed to be. Also, we
can revisit this in the future. I just don't want experiments to break
right now because someone uses an ability in a nested scope where we
don't expect.

Closes #2878
2022-04-18 18:04:46 -04:00
Folkert
8692938fb3
Merge branch 'vecset-references' into builtins-in-roc 2022-04-17 19:39:03 +02:00
Richard Feldman
718b999751
Merge pull request #2857 from rtfeldman/abilities-mono
Codegen for abilities
2022-04-16 22:59:16 -04:00
Folkert
c6f1001161
fix reporting tests 2022-04-16 21:38:39 +02:00