Skip to content

Commit

Permalink
record type with tag literal
Browse files Browse the repository at this point in the history
  • Loading branch information
marianoguerra committed Mar 15, 2015
1 parent a11ea36 commit 5d80c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fn_spec.erl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ parse_type_value(?O(Line, 'or', Left, Right), State) ->
Types = flatten_or(Right, [Left]),
{FnTypes, State1} = parse_types(Types, State),
{{type, Line, union, FnTypes}, State1};
parse_type_value(?V(Line, tag, [?Atom(r), ?Atom(RecordName)]), State) ->
parse_type_value(?LTag(Line, [?Atom(r)], ?Atom(RecordName)), State) ->
{{type, Line, record, [{atom, Line, RecordName}]}, State};

parse_type_value(Ast, State) ->
Expand Down

0 comments on commit 5d80c2a

Please sign in to comment.