mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Canonicalize and constrain statement expr in purity inference mode
This commit is contained in:
parent
460fa693fd
commit
6e6382ab23
14 changed files with 197 additions and 61 deletions
|
@ -4,6 +4,7 @@ use std::iter::once;
|
|||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use roc_can::abilities::SpecializationLambdaSets;
|
||||
use roc_can::def::DefKind;
|
||||
use roc_can::expr::Expr;
|
||||
use roc_can::pattern::Pattern;
|
||||
use roc_can::{def::Def, module::ExposedByModule};
|
||||
|
@ -90,6 +91,7 @@ fn build_derived_body(
|
|||
expr_var: body_type,
|
||||
pattern_vars: once((derived_symbol, body_type)).collect(),
|
||||
annotation: None,
|
||||
kind: DefKind::Let,
|
||||
};
|
||||
|
||||
(def, specialization_lambda_sets)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue