Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled abstract form issue with fun((...) #239

Closed
rvangraan opened this issue Jun 19, 2015 · 2 comments
Closed

Unhandled abstract form issue with fun((...) #239

rvangraan opened this issue Jun 19, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@rvangraan
Copy link

this spec:
-spec module_map(state(), abstract_function()) -> fun((...) -> ok | {error,term()}).

causes these errors:

Error: '{unhandled_abstract_form,
                           {type,[{line,114},{column,55},
                                   {text,"("}],any}}' while applying rule 'no_spec_with_records'.
 Error: '{unhandled_abstract_form,
                           {type,[{line,114},{column,55},
                                  {text,"("}],any}}' while applying rule 'state_record_and_type'.

it is a valid syntax for specs fun((...) -> means a fun of any arity returning a specific type.

Fun :: fun()                  %% any function
       | fun((...) -> Type)     %% any arity, returning Type
       | fun(() -> Type)
       | fun((TList) -> Type)
@jfacorro
Copy link
Contributor

@rvangraan The master branch includes this fix, could you please confirm when you get the chance? This fix will be included in the next 0.2.5 release.

@jfacorro jfacorro added this to the 0.2.5 milestone Jun 19, 2015
@rvangraan
Copy link
Author

Thanks @jfacorro, I will give it a try.

@jfacorro jfacorro added the bug label Jun 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants