Important TODO.

This commit is contained in:
Erik Svedäng 2020-05-04 13:56:45 +02:00
parent e6c119d34c
commit 3e98719ec2

View File

@ -1113,6 +1113,7 @@ manageMemory typeEnv globalEnv root =
checkThatRefTargetIsAlive :: XObj -> State MemState (Either TypeError XObj)
checkThatRefTargetIsAlive xobj =
-- TODO: Replace this whole thing with a function that collects all lifetime variables in a type.
case ty xobj of
Just (RefTy _ (VarTy lt)) ->
performCheck lt