aboutsummaryrefslogblamecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/src/loopy.erl
blob: 28125ec3d94eba9c2a346e4c5619e2e9655fd046 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                    
%% ERL-157, OTP-13653.
%% Would cause Dialyzer to go into an infinite loop.

-module(loopy).

-export([loop/1]).


-spec loop(Args) -> ok when
      Args :: [{Module, Args}],
      Module :: module(),
      Args :: any().
loop([{Module, Args} | Rest]) ->
    Module:init(Args),
    loop(Rest);
loop([]) ->
    ok.