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

Add tests for functions with return type annotations #13

Open
mauro3 opened this issue Nov 17, 2016 · 1 comment
Open

Add tests for functions with return type annotations #13

mauro3 opened this issue Nov 17, 2016 · 1 comment

Comments

@mauro3
Copy link
Owner

mauro3 commented Nov 17, 2016

No description provided.

@rafaqz
Copy link

rafaqz commented Feb 24, 2018

+1. Adding a return type to the readme example gives an error in SimpleTraits v.0.6.0, julia 0.6:

@traitfn f{X; IsNice{X}}(x::X)::String = "Very nice!"                                               
ERROR: MethodError: no method matching start(::Void) 
Closest candidates are:
  start(::SimpleVector) at essentials.jl:258
  start(::Base.MethodList) at reflection.jl:560
  start(::ExponentialBackOff) at error.jl:107
  ...                                                
Stacktrace:                                          
 [1] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66                                       
 [2] macro expansion at /home/raf/.julia/v0.6/Revise/src/Revise.jl:775 [inlined]                           
 [3] (::Revise.##17#18{Base.REPL.REPLBackend})() at ./event.jl:73 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants