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

Function infer_app

crates/kernel/src/infer.rs:712–722  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

710 let ty = tc.infer(&n).unwrap();
711 // Nat literal type = Nat constant
712 assert!(
713 matches!(ty.data(), ExprData::Const(id, _, _) if id.addr == tc.prims.nat.addr)
714 );
715 }
716
717 #[test]
718 fn infer_cache() {
719 let mut env = test_env();
720 let mut tc = TypeChecker::new(&mut env);
721 let e = sort0();
722 let t1 = tc.infer(&e).unwrap();
723 let t2 = tc.infer(&e).unwrap();
724 assert_eq!(t1, t2);
725 }

Callers

nothing calls this directly

Calls 9

push_localMethod · 0.80
inferMethod · 0.80
pop_localMethod · 0.80
test_envFunction · 0.70
sort0Function · 0.70
cnstFunction · 0.70
mk_idFunction · 0.70
appFunction · 0.70
varFunction · 0.70

Tested by

no test coverage detected