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

Function push_let_increments_let_count

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

Source from the content-addressed store, hash-verified

1209 let mut tc = new_tc();
1210 assert_eq!(tc.depth(), 0);
1211 tc.push_local(sort0());
1212 assert_eq!(tc.depth(), 1);
1213 tc.push_local(sort1());
1214 assert_eq!(tc.depth(), 2);
1215 tc.pop_local();
1216 assert_eq!(tc.depth(), 1);
1217 tc.pop_local();
1218 assert_eq!(tc.depth(), 0);
1219 }
1220
1221 #[test]
1222 fn fvar_ids_are_env_scoped_across_type_checkers() {
1223 let mut env = KEnv::<Meta>::new();
1224 let first = {
1225 let mut tc = TypeChecker::new(&mut env);

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected