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

Function infer_lam

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

Source from the content-addressed store, hash-verified

700
701 #[test]
702 fn infer_lam() {
703 let mut env = test_env();
704 let mut tc = TypeChecker::new(&mut env);
705 // λ (x : Sort 0). x : ∀ (x : Sort 0). Sort 0
706 let lam = AE::lam((), (), sort0(), AE::var(0, ()));
707 let ty = tc.infer(&lam).unwrap();
708 assert!(matches!(ty.data(), ExprData::All(..)));
709 }
710
711 #[test]
712 fn infer_app() {

Callers

nothing calls this directly

Calls 5

inferMethod · 0.80
test_envFunction · 0.70
lamFunction · 0.70
sort0Function · 0.70
varFunction · 0.70

Tested by

no test coverage detected