aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/src/fun_ref_record.erl
blob: eace7a4332f98f0e6a140f826e0a5348236cc0ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%%%-------------------------------------------------------------------
%%% File    : fun_ref_record.erl
%%% Author  : Tobias Lindahl <[email protected]>
%%% Description : Exposes a bug when referring to a fun in a record.
%%%
%%% Created : 25 Sep 2007 by Tobias Lindahl <[email protected]>
%%%-------------------------------------------------------------------
-module(fun_ref_record).

-export([t1/0, t2/0]).

-record(foo, {bar}).

t1() ->
    #foo{bar=fun t2/0}.

t2() -> ok.