File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -224,9 +224,12 @@ eval ctx xobj@(XObj o info ty) preference resolver =
224
224
Left err -> pure (evalError ctx (show err) (xobjInfo xobj))
225
225
Right x' -> case checkStatic' x' of
226
226
Right _ -> evaluateApp (self : args)
227
- Left er -> pure (evalError ctx ( show er) (xobjInfo xobj) )
227
+ Left er -> pure (ctx, Left er)
228
228
(AppPat (ListPat _) _) -> evaluateApp form'
229
229
(AppPat (SymPat _ _) _) -> evaluateApp form'
230
+ (AppPat (XObj other _ _) _)
231
+ | isResolvableStaticObj other ->
232
+ pure (ctx, (Left (HasStaticCall xobj info)))
230
233
[] -> pure (ctx, dynamicNil)
231
234
_ -> pure (throwErr (UnknownForm xobj) ctx (xobjInfo xobj))
232
235
checkStatic' (XObj Def _ _) = Left (HasStaticCall xobj info)
Original file line number Diff line number Diff line change @@ -1097,6 +1097,7 @@ isResolvableStaticObj (Deftemplate _) = True
1097
1097
isResolvableStaticObj (Instantiate _) = True
1098
1098
isResolvableStaticObj (Fn _ _) = True
1099
1099
isResolvableStaticObj (Interface _ _) = True
1100
+ isResolvableStaticObj Ref = True
1100
1101
isResolvableStaticObj _ = False
1101
1102
1102
1103
-- | Left biased semigroup instance for Envs.
You can’t perform that action at this time.
0 commit comments