mirror of
https://github.com/github/semantic.git
synced 2025-01-03 13:02:37 +03:00
rewrite first AsArray condition
This commit is contained in:
parent
8745c48dfa
commit
92cd5634dc
@ -271,7 +271,7 @@ instance ( Member (Reader ModuleInfo) sig
|
||||
ret = ArrayC . ret
|
||||
eff = ArrayC . handleSum (eff . handleCoercible) (\case
|
||||
Abstract.Array t k -> runArrayC (k (Array t))
|
||||
Abstract.AsArray (Array addresses) k -> pure addresses >>= runArrayC . k
|
||||
Abstract.AsArray (Array addresses) k -> runArrayC (k addresses)
|
||||
Abstract.AsArray val k -> (throwBaseError $ ArrayError val) >>= runArrayC . k)
|
||||
|
||||
instance AbstractHole (Value term address) where
|
||||
|
Loading…
Reference in New Issue
Block a user