aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_tests_SUITE_data/src/record_construct.erl
blob: af2460c5174ce27e5f9d83ff44ec095c66b830e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
-module(record_construct).
-export([t_loc/0, t_opa/0, t_rem/0]).

-record(r_loc, {a = gazonk :: integer(), b = 42 :: atom()}).

t_loc() ->
  #r_loc{}.

-record(r_opa, {a                 :: atom(),
		b = gb_sets:new() :: gb_set(),
		c = 42            :: boolean(),
		d,	% untyped on purpose
		e = false         :: boolean()}).

t_opa() ->
  #r_opa{}.

-record(r_rem, {a = gazonk :: file:filename()}).

t_rem() ->
  #r_rem{}.