mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Get things compiling
This commit is contained in:
parent
70bef827a7
commit
f35e43768a
18 changed files with 541 additions and 253 deletions
|
@ -503,14 +503,15 @@ pub fn constrain_expr(
|
|||
]),
|
||||
)
|
||||
}
|
||||
BlockStr(_) | Str(_) => {
|
||||
let uniq_type = var_store.fresh();
|
||||
let inferred = str_type(Bool::variable(uniq_type));
|
||||
Str { interpolations, .. } => {
|
||||
todo!("uniq constrain interpolations {:?}", interpolations);
|
||||
// let uniq_type = var_store.fresh();
|
||||
// let inferred = str_type(Bool::variable(uniq_type));
|
||||
|
||||
exists(
|
||||
vec![uniq_type],
|
||||
Eq(inferred, expected, Category::Str, region),
|
||||
)
|
||||
// exists(
|
||||
// vec![uniq_type],
|
||||
// Eq(inferred, expected, Category::Str, region),
|
||||
// )
|
||||
}
|
||||
EmptyRecord => {
|
||||
let uniq_type = var_store.fresh();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue