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

Function infer_app_of_non_function_errors

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

Source from the content-addressed store, hash-verified

847 .push(outer_id, LocalDecl::CDecl { name: (), bi: (), ty: sort0() });
848 let saved = tc.lctx.len();
849
850 assert!(tc.infer(&expr).is_err(), "{kind} body must fail");
851 assert_eq!(
852 tc.lctx.len(),
853 saved,
854 "{kind} inference leaked a binder local after error"
855 );
856 assert!(
857 tc.lctx.find(outer_id).is_some(),
858 "{kind} inference damaged the enclosing local context"
859 );
860 }
861 }
862

Callers

nothing calls this directly

Calls 6

inferMethod · 0.80
test_envFunction · 0.70
cnstFunction · 0.70
mk_idFunction · 0.70
appFunction · 0.70
sort0Function · 0.70

Tested by

no test coverage detected