()
| 1464 | tc.push_local(var(3)); |
| 1465 | tc.push_local(sort1()); |
| 1466 | let t = tc.lookup_var(1).unwrap(); |
| 1467 | // Lifted from Var(3) with lift-by-(idx+1)=2 → Var(3+2)=Var(5). |
| 1468 | // The implementation calls `lift(&intern, &ty, idx + 1, 0)` which |
| 1469 | // shifts all free bvars by idx+1. |
| 1470 | match t.data() { |
| 1471 | ExprData::Var(i, _, _) => assert_eq!(*i, 5), |
| 1472 | other => panic!("expected Var, got {other:?}"), |
| 1473 | } |
| 1474 | } |
| 1475 | |
| 1476 | #[test] |
| 1477 | fn lookup_let_val_returns_none_for_lambda_binding() { |
| 1478 | let mut tc = new_tc(); |
nothing calls this directly
no test coverage detected