Fix type spec

This commit is contained in:
Ulf Norell 2020-01-14 12:39:52 +01:00
parent 911c54eda0
commit 43fa667f03

View File

@ -415,7 +415,7 @@ type_to_fcode(Env, Sub, {fun_t, _, Named, Args, Res}) ->
type_to_fcode(_Env, _Sub, Type) ->
error({todo, Type}).
-spec args_to_fcode(env(), [aeso_syntax:pattern()]) -> [{var_name(), ftype()}].
-spec args_to_fcode(env(), [aeso_syntax:pat()]) -> [{var_name(), ftype()}].
args_to_fcode(Env, Args) ->
[ case Arg of
{id, _, Name} -> {Name, type_to_fcode(Env, Type)};