MCPcopy Create free account
hub / github.com/argumentcomputer/ix / push_local_does_not_touch_let_count

Function push_local_does_not_touch_let_count

crates/kernel/src/tc.rs:1225–1239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1223 let mut env = KEnv::<Meta>::new();
1224 let first = {
1225 let mut tc = TypeChecker::new(&mut env);
1226 tc.fresh_fvar_id()
1227 };
1228 let second = {
1229 let mut tc = TypeChecker::new(&mut env);
1230 tc.fresh_fvar_id()
1231 };
1232 assert_ne!(first, second);
1233 assert_eq!(first.0, 0);
1234 assert_eq!(second.0, 1);
1235 }
1236
1237 #[test]
1238 fn push_let_increments_let_count() {
1239 let mut tc = new_tc();
1240 assert_eq!(tc.num_let_bindings, 0);
1241 tc.push_let(sort0(), sort0());
1242 assert_eq!(tc.num_let_bindings, 1);

Callers

nothing calls this directly

Calls 5

new_tcFunction · 0.85
push_localMethod · 0.80
push_letMethod · 0.80
pop_localMethod · 0.80
sort0Function · 0.70

Tested by

no test coverage detected