mirror of
https://github.com/idris-lang/Idris2.git
synced 2025-01-03 00:55:00 +03:00
Don't write metavariable types to ttc!
On second thoughts, and after further experimentation, better to recheck the metavariable if it arises in linearity checking, because the type could be very big and in general will be much bigger than the definition. If this turns out to be a performance issue later, we can revisit it.
This commit is contained in:
parent
00d6027b75
commit
6ffe4c5257
@ -915,9 +915,9 @@ TTC GlobalDef where
|
||||
toBuf b (fullname gdef)
|
||||
toBuf b (map toList (refersToM gdef))
|
||||
toBuf b (definition gdef)
|
||||
toBuf b (type gdef)
|
||||
when (isUserName (fullname gdef) || cwName (fullname gdef)) $
|
||||
do toBuf b (eraseArgs gdef)
|
||||
do toBuf b (type gdef)
|
||||
toBuf b (eraseArgs gdef)
|
||||
toBuf b (safeErase gdef)
|
||||
toBuf b (specArgs gdef)
|
||||
toBuf b (inferrable gdef)
|
||||
@ -943,9 +943,9 @@ TTC GlobalDef where
|
||||
refsList <- fromBuf b
|
||||
let refs = map fromList refsList
|
||||
def <- fromBuf b
|
||||
ty <- fromBuf b
|
||||
if isUserName name
|
||||
then do eargs <- fromBuf b;
|
||||
then do ty <- fromBuf b
|
||||
eargs <- fromBuf b;
|
||||
seargs <- fromBuf b; specargs <- fromBuf b
|
||||
iargs <- fromBuf b;
|
||||
vars <- fromBuf b
|
||||
|
Loading…
Reference in New Issue
Block a user