actually infer the size

This commit is contained in:
Folkert 2020-10-02 22:33:31 +02:00
parent c00cd2f415
commit e9f5c1a73c
8 changed files with 51 additions and 25 deletions

View file

@ -196,8 +196,9 @@ fn solve(
constraint: &Constraint,
) -> State {
match constraint {
True => state,
SaveTheEnvironment => {
// True => state,
True | SaveTheEnvironment => {
// NOTE deviation: elm only copies the env into the state on SaveTheEnvironment
let mut copy = state;
copy.env = env.clone();