aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/src/higher_order_discrepancy_2.erl
blob: 4b0d4f6b455812ac210f24ab99509765d11235b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-module(higher_order_discrepancy_2).

-export([test/1]).

test(X) ->
    F =
	case X of
	    1 -> fun f/1;
	    2 -> fun g/1
	end,
    F(foo).

f(bar) -> ok.
g(baz) -> ok.