Prepare for new repl #892

Merged
zxq9 merged 3 commits from repl-prep into master 2022-07-26 01:46:54 +09:00
Showing only changes of commit fb621807a9 - Show all commits

View File

@ -1642,7 +1642,8 @@ check_stateful_named_arg(_, _, _) -> ok.
check_entrypoints(Defs) ->
[ ensure_first_order_entrypoint(LetFun)
|| LetFun <- Defs,
aeso_syntax:get_ann(entrypoint, LetFun, false) ].
aeso_syntax:get_ann(entrypoint, LetFun, false),
get_option(allow_higher_order_entrypoints, false) =:= false ].
ensure_first_order_entrypoint({letfun, Ann, Id = {id, _, Name}, Args, Ret, _}) ->
[ ensure_first_order(ArgType, {higher_order_entrypoint, AnnArg, Id, {argument, ArgId, ArgType}})