blob: c7d7459614c0f96c03e64d0a19a67e453282141d (
plain) (
tree)
|
|
-module(unknown_arity_function_spec).
-export([test/2]).
%-type t() :: 42 | fun((...) -> t()).
%-type f() :: fun((...) -> 42).
-spec test(fun((...) -> 42), list()) -> 42.
test(F, L) ->
42 = apply(F, L).
|