Permit able variables in aliases, and thread them through

This commit is contained in:
Ayaz Hafiz 2022-05-04 17:17:24 -04:00 committed by ayazhafiz
parent 01af970b49
commit 2e57bf0b6a
15 changed files with 399 additions and 123 deletions

View file

@ -18,7 +18,7 @@ use roc_parse::pattern::PatternType;
use roc_problem::can::{Problem, RuntimeError};
use roc_region::all::{Loc, Region};
use roc_types::subs::{VarStore, Variable};
use roc_types::types::{Alias, AliasKind, Type};
use roc_types::types::{Alias, AliasKind, AliasVar, Type};
#[derive(Debug)]
pub struct Module {
@ -119,7 +119,7 @@ impl GeneratedInfo {
scope.add_alias(
effect_symbol,
Region::zero(),
vec![Loc::at_zero(("a".into(), a_var))],
vec![Loc::at_zero(AliasVar::unbound("a".into(), a_var))],
actual,
AliasKind::Opaque,
);