parse_trans/examples/test_exprecs.erl
2011-10-28 12:26:52 -07:00

17 lines
245 B
Erlang

-module(test_exprecs).
-compile({pt_pp_src, true}).
-export([f/0]).
-compile({parse_transform, exprecs}).
-record(r, {a = 0 :: integer(), b = 0 :: integer(), c = 0 :: integer()}).
-record(s, {a}).
-export_records([r, s]).
f() ->
foo.