mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-08 10:20:41 +00:00
Fix type assumption highlight in let
Previously, (let g = λx.x in g) g was highlighted incorrectly
This commit is contained in:
parent
116aea51c3
commit
a0ae4f08b6
@ -172,6 +172,7 @@ public class Tree implements TermVisitorTree {
|
||||
|
||||
TypeAbstraction newTypeAbstraction = new TypeAbstraction(
|
||||
typeInfererLet.getType().orElseThrow(IllegalStateException::new), extendedTypeAssumptions);
|
||||
extendedTypeAssumptions.remove(letTerm.getVariable());
|
||||
extendedTypeAssumptions.put(letTerm.getVariable(), newTypeAbstraction);
|
||||
|
||||
constraints.add(newConstraint);
|
||||
|
Loading…
Reference in New Issue
Block a user