You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resolveTy NoSumType o@(TraitObject b _) |length b >1= scope o (correct "added parens around trait object type"*> resolveTy NoSumType (ParenTy o mempty))
385
384
resolveTy NoForType o@TraitObject{} = scope o (correct "added parens around trait object type"*> resolveTy NoForType (ParenTy o mempty))
386
-
resolveTy ReturnType o@TraitObject{} = scope o (correct "added parens around trait object type"*> resolveTy ReturnType (ParenTy o mempty))
resolveTy PrimParenType p@(PathTy (Just _) _ _) = scope p (correct "added parents around path type"*> resolveTy PrimParenType (ParenTy p mempty))
401
398
resolveTy _ p@(PathTy q p'@(Path _ s _) x) = scope p $
@@ -435,7 +432,7 @@ resolveFnDecl :: (Typeable a, Monoid a) => FnDeclType -> ArgType -> FnDecl a ->
435
432
resolveFnDecl fn _ f@(FnDecl (s : _) _ _ _) | isSelfArg s && fn /=AllowSelf= scope f (err f "self argument is not allowed in this function declaration")
436
433
resolveFnDecl _ _ f@(FnDecl (_ : as) _ _ _) |any isSelfArg as = scope f (err f "self arguments must always be the first arguments")
437
434
resolveFnDecl fn _ f@(FnDecl _ _ True _) | fn /=VarNoSelf= scope f (err f "this function declaration cannot be variadic")
438
-
resolveFnDecl _ at f@(FnDecl as o v x) = scope f (FnDecl<$>traverse (resolveArg at) as <*>traverse (resolveTy ReturnType) o <*>pure v <*>pure x)
435
+
resolveFnDecl _ at f@(FnDecl as o v x) = scope f (FnDecl<$>traverse (resolveArg at) as <*>traverse (resolveTy AnyType) o <*>pure v <*>pure x)
439
436
440
437
--| Check whether an argument is one of the "self" forms
0 commit comments