mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Treat untyped unsuffixed functions as pure
This commit is contained in:
parent
70fa4d036c
commit
af6fc6306f
5 changed files with 186 additions and 24 deletions
|
@ -635,6 +635,10 @@ impl Constraints {
|
|||
Constraint::FxSuffix(constraint_index)
|
||||
}
|
||||
|
||||
pub fn flex_to_pure(&mut self, fx_var: Variable) -> Constraint {
|
||||
Constraint::FlexToPure(fx_var)
|
||||
}
|
||||
|
||||
pub fn contains_save_the_environment(&self, constraint: &Constraint) -> bool {
|
||||
match constraint {
|
||||
Constraint::SaveTheEnvironment => true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue