%%%------------------------------------------------------------------- %%% File : record_test.erl %%% Author : Tobias Lindahl %%% Description : %%% %%% Created : 22 Oct 2004 by Tobias Lindahl %%%------------------------------------------------------------------- -module(record_test). -export([t/0]). -record(foo, {bar}). t() -> doit(foo). doit(X) -> case X of #foo{} -> error1; foo -> ok; _ -> error2 end.