mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Merge branch 'trunk' of github.com:rtfeldman/roc into crates-folder
This commit is contained in:
commit
b74fc3554b
35 changed files with 359 additions and 1204 deletions
|
@ -368,8 +368,6 @@ pub const LIST_DROP_AT: &str = "roc_builtins.list.drop_at";
|
|||
pub const LIST_SWAP: &str = "roc_builtins.list.swap";
|
||||
pub const LIST_SINGLE: &str = "roc_builtins.list.single";
|
||||
pub const LIST_WITH_CAPACITY: &str = "roc_builtins.list.with_capacity";
|
||||
pub const LIST_JOIN: &str = "roc_builtins.list.join";
|
||||
pub const LIST_RANGE: &str = "roc_builtins.list.range";
|
||||
pub const LIST_REVERSE: &str = "roc_builtins.list.reverse";
|
||||
pub const LIST_SORT_WITH: &str = "roc_builtins.list.sort_with";
|
||||
pub const LIST_CONCAT: &str = "roc_builtins.list.concat";
|
||||
|
|
|
@ -1214,11 +1214,11 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
);
|
||||
|
||||
fn until_type(content: SolvedType) -> SolvedType {
|
||||
// [LT, EQ, GT]
|
||||
// [Continue, Break]
|
||||
SolvedType::TagUnion(
|
||||
vec![
|
||||
(TagName("Continue".into()), vec![content.clone()]),
|
||||
(TagName("Stop".into()), vec![content]),
|
||||
(TagName("Break".into()), vec![content]),
|
||||
],
|
||||
Box::new(SolvedType::EmptyTagUnion),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue