mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-30 15:13:37 +03:00
04a0f5001f
We've always just used 0, which isn't correct if the function is going to be used in a runtime pattern match. Now calculate correctly so that we're explicit about which type level variables are used at runtime. This might cause some programs to fail to compile, if they use functions that calculate Pi types. The solution is to make those functions explicitly 0 multiplicity. If that doesn't work, you may have been accidentally trying to use compile-time only data at run time! Fixes #1163
27 lines
729 B
Plaintext
27 lines
729 B
Plaintext
0 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
|
|
|
|
idInt : Integer
|
|
idInt = idid 94
|