Skip to content

Commit

Permalink
Merge pull request #60 from inaka/jfacorro.59.unhandled_abstract_form
Browse files Browse the repository at this point in the history
[Closes #59] Handle 'fun(...) ->' type expression
  • Loading branch information
HernanRivasAcosta committed Jun 19, 2015
2 parents 09f112e + be52ee6 commit 48a5a3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ktn_code.erl
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,11 @@ to_map({type, Attrs, bounded_fun, [FunType, Defs]}) ->
content => to_map(Defs)};
to_map({type, Attrs, Name, any}) ->
to_map({type, Attrs, Name, [any]});
to_map({type, Attrs, any}) ->
#{type => type,
attrs => #{location => get_location(Attrs),
text => "...",
name => '...'}};
to_map({type, Attrs, Name, Types}) ->
#{type => type,
attrs => #{location => get_location(Attrs),
Expand Down

0 comments on commit 48a5a3c

Please sign in to comment.