mirror of
https://github.com/carp-lang/Carp.git
synced 2024-11-05 04:44:12 +03:00
Important TODO.
This commit is contained in:
parent
e6c119d34c
commit
3e98719ec2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user