mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Get it all to compile!
This commit is contained in:
parent
555478cdf0
commit
8272ea876f
21 changed files with 217 additions and 21 deletions
|
@ -1,4 +1,6 @@
|
|||
use crate::builtins::{empty_list_type, float_literal, int_literal, list_type, str_type};
|
||||
use crate::builtins::{
|
||||
empty_list_type, float_literal, int_literal, list_type, num_unsigned32, str_type,
|
||||
};
|
||||
use crate::pattern::{constrain_pattern, PatternState};
|
||||
use roc_can::annotation::IntroducedVariables;
|
||||
use roc_can::constraint::Constraint::{self, *};
|
||||
|
@ -217,6 +219,7 @@ pub fn constrain_expr(
|
|||
exists(vars, And(cons))
|
||||
}
|
||||
Str(_) => Eq(str_type(), expected, Category::Str, region),
|
||||
SingleQuote(_) => Eq(num_unsigned32(), expected, Category::Character, region),
|
||||
List {
|
||||
elem_var,
|
||||
loc_elems,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue