Skip to content

Commit 4327616

Browse files
committed
does this fix the macos thing?
1 parent 1c9744d commit 4327616

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/ty_python_semantic/src/types/constraints.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,10 @@ impl<'db> InteriorNode<'db> {
16221622
.abstract_one_inner(db, should_remove, map, path)
16231623
})
16241624
.unwrap_or(Node::AlwaysFalse);
1625-
Node::new(db, self_constraint, if_true, if_false)
1625+
// NB: We cannot use `Node::new` here, because the recursive calls might introduce new
1626+
// derived constraints into the result, and those constraints might appear before this
1627+
// one in the BDD ordering.
1628+
Node::new_constraint(db, self_constraint).ite(db, if_true, if_false)
16261629
}
16271630
}
16281631

0 commit comments

Comments
 (0)