mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Validation of opaques during canonicalization
This commit is contained in:
parent
6b53692aac
commit
90de82e295
20 changed files with 546 additions and 132 deletions
|
@ -10,7 +10,7 @@ use roc_module::ident::TagName;
|
|||
use roc_module::symbol::Symbol;
|
||||
use roc_region::all::{Loc, Region};
|
||||
use roc_types::subs::{VarStore, Variable};
|
||||
use roc_types::types::Type;
|
||||
use roc_types::types::{AliasKind, Type};
|
||||
|
||||
#[derive(Default, Clone, Copy)]
|
||||
pub(crate) struct HostedGeneratedFunctions {
|
||||
|
@ -1140,7 +1140,7 @@ fn build_effect_loop(
|
|||
closure_var,
|
||||
))],
|
||||
actual: Box::new(actual),
|
||||
is_opaque: false,
|
||||
kind: AliasKind::Structural,
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1580,7 +1580,7 @@ fn build_effect_alias(
|
|||
type_arguments: vec![(a_name.into(), Type::Variable(a_var))],
|
||||
lambda_set_variables: vec![roc_types::types::LambdaSet(Type::Variable(closure_var))],
|
||||
actual: Box::new(actual),
|
||||
is_opaque: false,
|
||||
kind: AliasKind::Structural,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue