Fix substitution not working for polytypes

honestly i don't know how i didn't catch that sooner
This commit is contained in:
Emi Simpson 2023-03-09 22:11:21 -05:00
parent fb55346003
commit ca685d7ded
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ class Context:
def subst(self, replacement: MonoType, var: VarTy) -> 'Context':
return Context({
name: val
name: val.subst(replacement, var)
for (name, val) in self.variable_types.items()
})