Add a uitest for pseudo-polymorphic specializations

This commit is contained in:
Ayaz Hafiz 2023-04-10 16:21:15 -05:00
parent 19c0ebc10f
commit 32d4b45557
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 19 additions and 1 deletions

View file

@ -20,7 +20,7 @@ use roc_reporting::report::{can_problem, type_problem, RocDocAllocator};
use roc_solve_problem::TypeError;
use roc_types::{
pretty_print::{name_and_print_var, DebugPrint},
subs::{Subs, Variable},
subs::{instantiate_rigids, Subs, Variable},
};
fn promote_expr_to_module(src: &str) -> String {
@ -533,6 +533,7 @@ impl<'a> QueryCtx<'a> {
let def_region = Region::new(start_pos, end_pos);
let def_source = &self.source[start_pos.offset as usize..end_pos.offset as usize];
instantiate_rigids(self.subs, def.var());
roc_late_solve::unify(
self.home,
self.arena,