Commit graph

9048 commits

Author SHA1 Message Date
Richard Feldman
37422c6a76 Add failing tests for hex/octal/binary 2019-12-07 02:26:08 -05:00
Richard Feldman
12018a2fc8 Show expected vs actual in better order 2019-12-07 02:25:43 -05:00
Richard Feldman
c23270df5f
Merge pull request #55 from rtfeldman/infer-exposing
Infer types for exposed imports
2019-12-07 01:19:34 -05:00
Richard Feldman
92083e1e62 Relax some crate bounds 2019-12-07 01:18:08 -05:00
Richard Feldman
b79b10f4ec
Merge branch 'trunk' into infer-exposing 2019-12-07 01:07:11 -05:00
Richard Feldman
0b4be48a9b
Merge pull request #45 from rtfeldman/ct/comment-tests-and-new-line-tests
Format tests for comment position and new lines
2019-12-07 01:06:02 -05:00
Richard Feldman
5730ae250c Remove a .clone() - thanks, clippy! 2019-12-07 00:57:44 -05:00
Richard Feldman
ccc052d4ab cargo fmt 2019-12-07 00:57:09 -05:00
Richard Feldman
ba9cecdb79 Rename more envs to vars_by_symbol 2019-12-07 00:56:58 -05:00
Richard Feldman
2ffa16c1f2 Fix top-level defs bug 2019-12-07 00:56:32 -05:00
Richard Feldman
c30dd4bdf1 Replace .expect() with a panic 2019-12-07 00:48:01 -05:00
Richard Feldman
bfacfa729b Update comment 2019-12-07 00:40:57 -05:00
Richard Feldman
23c1a5587a Remove unnecessary flex_info addition 2019-12-07 00:38:29 -05:00
Chad Stearns
7bffda72ac Merge branch 'ct/comment-tests-and-new-line-tests' of github.com:rtfeldman/roc into ct/comment-tests-and-new-line-tests 2019-12-07 00:36:02 -05:00
Chad Stearns
85a6ba606b Merge branch 'trunk' of github.com:rtfeldman/roc into ct/comment-tests-and-new-line-tests 2019-12-07 00:35:19 -05:00
Chad Stearns
2b58604719 Deleted commented out failing tests, and ran cargo fmt 2019-12-07 00:34:56 -05:00
Richard Feldman
885d1b4475 Fix Dep3 shadowing 2019-12-07 00:34:36 -05:00
Richard Feldman
d86af21c7f Remove ExposedImport 2019-12-07 00:33:10 -05:00
Richard Feldman
6f9a9c6682 Rename RawVar to ExposedImport 2019-12-06 22:46:14 -05:00
Richard Feldman
9b853f62b1 Desugar exposed imports into the parse AST 2019-12-06 22:46:14 -05:00
Richard Feldman
34fd1c23bb Add failing test for exposing 2019-12-06 22:42:34 -05:00
Chadtech
965b60a749
Merge branch 'trunk' into ct/comment-tests-and-new-line-tests 2019-12-06 22:15:23 -05:00
Richard Feldman
f306b6f7dc
Merge pull request #49 from rtfeldman/infer-modules
Type check across modules
2019-12-06 21:09:06 -05:00
Richard Feldman
2b2edf1f5c Expand load_and_infer a bit. 2019-12-06 20:53:31 -05:00
Richard Feldman
9ff63e160e Do what clippy suggests 2019-12-06 20:35:37 -05:00
Richard Feldman
e82f2a36d8 cargo fmt 2019-12-06 20:34:41 -05:00
Richard Feldman
9d98d0d99a Add load_and_infer test 2019-12-06 20:34:41 -05:00
Richard Feldman
3fdaf25e0d Solve module defs 2019-12-06 20:34:41 -05:00
Richard Feldman
3945d64310 Constrain module defs 2019-12-06 20:34:41 -05:00
Richard Feldman
6803838994 Improve some comments 2019-12-06 20:34:41 -05:00
Richard Feldman
62282c213f Let VarStore start at nonzero 2019-12-06 20:34:41 -05:00
Richard Feldman
8e16529800 Propagate Subs info better 2019-12-06 20:34:41 -05:00
Richard Feldman
b69c8cac9b Introduce variables_by_symbol 2019-12-06 20:34:41 -05:00
Richard Feldman
969f369f79 Use Box<str> for Ident 2019-12-06 20:34:41 -05:00
Richard Feldman
df3d177d04 Don't treat qualified idents as broken 2019-12-06 20:23:45 -05:00
Richard Feldman
b2a9fa8f67 Don't use hex numbers in builtins yet, due to #1 2019-12-06 20:22:46 -05:00
Richard Feldman
5506d9f83e Update names in builtins 2019-12-06 20:22:42 -05:00
Richard Feldman
e30206bf06 Improve Mark Debug 2019-12-06 20:17:31 -05:00
Richard Feldman
8b4445c61c
Merge pull request #47 from rtfeldman/infer-builtins
Canonicalize modules
2019-12-05 21:43:46 -05:00
Richard Feldman
1252ce2a30 Satisfy clippy 2019-12-05 19:51:56 -05:00
Richard Feldman
1d0d7170bb Drop unnecessary lifetime annotation 2019-12-05 19:51:56 -05:00
Richard Feldman
fb092b8140 Drop some obsolete comments 2019-12-05 19:51:56 -05:00
Richard Feldman
ba92480d97 Reorganize can/ module 2019-12-05 19:51:56 -05:00
Richard Feldman
c862ee9fca Expand stack size for some tests. 2019-12-05 19:51:50 -05:00
Richard Feldman
35177f0e56 Add WithBuiltins test 2019-12-05 19:51:50 -05:00
Richard Feldman
16a03d1e49 Revise builtins 2019-12-05 19:51:50 -05:00
Richard Feldman
6be678b427 Make Constraint be Send 2019-12-05 19:51:50 -05:00
Richard Feldman
19885d32c1 Revise parse::ast::Defs
Add Nested, drop CustomType and TypeAlias
2019-12-05 19:51:50 -05:00
Richard Feldman
1a88c03b95
Merge pull request #46 from rtfeldman/fix-parser-bug
Fix parser bug
2019-12-05 19:44:58 -05:00
Richard Feldman
be810f4dc9 Add restricted keyword 'as' 2019-12-05 19:34:31 -05:00