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

Function infer_const

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

Source from the content-addressed store, hash-verified

690
691 #[test]
692 fn infer_const() {
693 let mut env = test_env();
694 let mut tc = TypeChecker::new(&mut env);
695 let nat = AE::cnst(mk_id("Nat"), Box::new([]));
696 let ty = tc.infer(&nat).unwrap();
697 // Nat : Sort 1
698 assert_eq!(ty, sort1());
699 }
700
701 #[test]
702 fn infer_lam() {

Callers

nothing calls this directly

Calls 4

inferMethod · 0.80
test_envFunction · 0.70
cnstFunction · 0.70
mk_idFunction · 0.70

Tested by

no test coverage detected