mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-21 03:41:30 +03:00
56c0ec5324
This checks lambdas where the type isn't immediately a pi binder. First normalises, if that doesn't work, just guesses and unifies with the expected type.
27 lines
724 B
Plaintext
27 lines
724 B
Plaintext
IdType : Type
|
|
IdType = {0 a : Type} -> a -> a
|
|
|
|
id : IdType
|
|
id = \ x : _ => x
|
|
|
|
idid : {0 a : Type} -> a -> a
|
|
idid = id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
id id id id id id id id id id
|
|
|
|
idTy : Type
|
|
idTy = idid Type
|