Ayaz Hafiz
eb81c68bcb
Pass abilities store to mono
2022-04-14 16:20:55 -04:00
Ayaz Hafiz
ff3f54b3eb
Bugfix report message
2022-04-14 08:59:41 -04:00
Ayaz Hafiz
8eec930260
More and smarter checking and error reporting for abilities
2022-04-13 15:25:19 -04:00
Ayaz Hafiz
0792ccbbe8
Calling ability with non-specialized type is an error
2022-04-13 11:49:33 -04:00
Ayaz Hafiz
de9d97c5d1
Ability specialization checks against annotation
2022-04-13 10:46:41 -04:00
Ayaz Hafiz
5e1ab8225e
Report when ability member binds >1 variable to parent
2022-04-13 10:11:24 -04:00
Ayaz Hafiz
03d4d81f8d
Remove unnecessary condition
2022-04-13 08:41:45 -04:00
Ayaz Hafiz
67b5ab7fe7
Add test for when specialization types conflict
2022-04-12 19:01:36 -04:00
Ayaz Hafiz
d94556d807
Report overly general specializations
2022-04-12 18:52:49 -04:00
Ayaz Hafiz
16d0060824
Report errors for type errors in specializations outside of ability impl
2022-04-12 18:41:20 -04:00
Ayaz Hafiz
127d435ff2
Report incomplete ability implementations
2022-04-12 18:26:19 -04:00
Ayaz Hafiz
5171e3964d
Lift able variables to the top of a reported error type
2022-04-12 17:19:27 -04:00
Ayaz Hafiz
a73c8a85c2
Remove stray test for now
2022-04-12 17:10:44 -04:00
Ayaz Hafiz
865c1f15d7
Fix test compile errors, and simply load_internal tests
2022-04-12 16:42:51 -04:00
Ayaz Hafiz
15a040ec87
Basic type inference and solving for abilities
...
Note that is still pretty limited. We only permit opaque types to
implement abilities, abilities cannot have type arguments, and also no
other functions may depend on abilities
2022-04-12 16:18:07 -04:00
Folkert
6ef443d1b0
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc
2022-04-10 19:14:00 +02:00
Folkert
be1f06f872
fix name suggestions in reporting tests
2022-04-10 17:17:00 +02:00
Folkert
0551b564bd
fix num import issues in reporting tests
2022-04-10 17:09:50 +02:00
ayazhafiz
94a5cd3559
Improve shadow errors
2022-04-07 22:38:20 -04:00
ayazhafiz
13a17f1858
Improve error message
2022-04-07 22:26:17 -04:00
Ayaz Hafiz
66ec1b4a84
Basic canonicalization and error checking for abilities
2022-04-07 17:21:17 -04:00
Ananda Umamil
39feabe502
Add error message when imports
are missing
2022-03-27 13:46:27 +07:00
Folkert
9b63e6a3a9
simplify IntroducedVariables
2022-03-18 23:47:39 +01:00
Brian Carroll
9cb6261a4d
Merge pull request #2736 from rtfeldman/wasm-repl-palette
...
Web REPL error styling
2022-03-18 12:00:44 +00:00
Folkert
a3b00fbf55
Merge branch 'explicit-closed-tag-record' into delay-instantiating-aliases
2022-03-17 20:34:52 +01:00
Brian Carroll
0d7a7fe34f
reporting: generalise text styles to work with HTML as well as ANSI
2022-03-17 09:35:58 +00:00
Folkert
de37897df4
fix reporting tests compilation
2022-03-16 22:10:20 +01:00
ayazhafiz
8aaf614481
Improve error message
2022-03-15 11:18:02 -05:00
ayazhafiz
787c8ee3a5
s/occurence/occurrence/g
2022-03-14 17:50:55 -05:00
ayazhafiz
3da34fc843
Report unbound type variables in aliases, opaques
...
Closes #2726
2022-03-14 17:42:45 -05:00
ayazhafiz
01b5109672
Fix reporting test
2022-03-13 19:47:01 -05:00
ayazhafiz
d92a5b9424
Reporting for abilities parsing
2022-03-12 22:08:01 -06:00
Derek Gustafson
e9d99862da
Fix failing test.
2022-03-11 17:26:08 -05:00
Derek Gustafson
133d74cc82
Merge branch 'trunk' into typecheck-panic
2022-03-11 10:02:08 -05:00
Folkert
768703c5df
update reporting; suggestions now have Box in scope
2022-03-09 16:12:11 +01:00
Derek Gustafson
9284d2733f
Fix fmt errors.
2022-03-08 13:49:53 -05:00
Derek Gustafson
05c888de56
Move UnknownType panic test from cli_run to test_reporting.
2022-03-08 13:20:31 -05:00
ayazhafiz
47e4904075
Chase aliases when checking for valid extension types
2022-03-06 22:17:58 -05:00
ayazhafiz
74c972916d
Remove unnecessary whitespace in reporting tests
2022-03-06 22:17:22 -05:00
ayazhafiz
eed7e3df71
Report invalid extension types during canonicalization
...
Closes #2541
2022-03-06 22:17:22 -05:00
ayazhafiz
6672a174f2
Mention lack of if clause in missing guard pattern
2022-03-06 09:51:38 -05:00
ayazhafiz
cc07c93fc3
Add note about lack of a guard in missing tag
2022-03-05 13:34:49 -05:00
ayazhafiz
81481e2599
Report non-exhaustive patterns with guards
2022-03-05 13:30:02 -05:00
Folkert
f2fa625886
add test
2022-03-05 16:48:33 +01:00
Folkert
f8021fb449
fix reporting tests
2022-03-02 22:17:25 +01:00
Richard Feldman
887a07b455
Merge pull request #2596 from rtfeldman/joshuawarner32/listclosing-braces
...
Allow closing braces in collections to be at any indent level
2022-02-28 20:00:44 -05:00
Joshua Warner
3db961106e
Remove now failing tests
2022-02-27 14:16:06 -08:00
ayazhafiz
69953c74ad
Fix missing test annotation
2022-02-27 15:51:27 -05:00
ayazhafiz
720b7b49d2
Improve error pattern and fix tests
2022-02-27 12:01:12 -05:00
ayazhafiz
34900c1f55
Address @rtfeldman review
2022-02-27 00:11:11 -05:00