Fix substitution not working for polytypes
honestly i don't know how i didn't catch that sooner
This commit is contained in:
parent
fb55346003
commit
ca685d7ded
|
@ -166,7 +166,7 @@ class Context:
|
||||||
|
|
||||||
def subst(self, replacement: MonoType, var: VarTy) -> 'Context':
|
def subst(self, replacement: MonoType, var: VarTy) -> 'Context':
|
||||||
return Context({
|
return Context({
|
||||||
name: val
|
name: val.subst(replacement, var)
|
||||||
for (name, val) in self.variable_types.items()
|
for (name, val) in self.variable_types.items()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue