Skip to content

Commit 98f7611

Browse files
stroxlermeta-codesync[bot]
authored andcommitted
Use ty, not w for the answer
Summary: It doesn't matter much, but seeing `w` used here struck me as odd. I need to tweak this code to change how loops work and I really didn't want to extend the pattern of using `w` for a type. Reviewed By: yangdanny97 Differential Revision: D85530071 fbshipit-source-id: 4877493dbe1b1e729ec5f2fb4aea052bf524bd81
1 parent 697b0ae commit 98f7611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyrefly/lib/solver/solver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ impl Solver {
343343
let lock = self.variables.lock();
344344
if let Some(_guard) = lock.recurse(*x, recurser) {
345345
let variable = lock.get(*x);
346-
if let Variable::Answer(w) = &*variable {
347-
*t = w.clone();
346+
if let Variable::Answer(ty) = &*variable {
347+
*t = ty.clone();
348348
drop(variable);
349349
drop(lock);
350350
self.expand_with_limit(t, limit - 1, recurser);

0 commit comments

Comments
 (0)