Variant on Tree, try not to expand too much

This commit is contained in:
2024-10-17 21:54:11 -07:00
parent 05afc10631
commit 41a7563ad5
6 changed files with 118 additions and 9 deletions

11
tests/aside/Test1.newt Normal file
View File

@@ -0,0 +1,11 @@
module Test1
-- This is not total
nat : U
nat = {C : U} -> C -> (nat -> C) -> C
-- TESTCASE This was broken when I wasn't expanding Ref ty in check
-- Also broken when I tried to put Def in VRef
-- Broken if I don't `nf` the type of a function before putting in TopContext
succ : nat -> nat
succ = \n => \ z s => s n