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

Type parameter not defined in inner anonymous function #15324

Closed
alyst opened this issue Mar 2, 2016 · 1 comment
Closed

Type parameter not defined in inner anonymous function #15324

alyst opened this issue Mar 2, 2016 · 1 comment

Comments

@alyst
Copy link
Contributor

alyst commented Mar 2, 2016

This works in v0.4.3:

test{F}(v::Vector{F}) = sort!(v, lt=(x::F, y::F) -> x<y)

test(rand(5))

But in 0.5.0-dev+2918 test() declaration fails with

ERROR: UndefVarError: F not defined                                                                                                                                     
 in eval(::Module, ::Any) at ./boot.jl:267
@yuyichao
Copy link
Contributor

yuyichao commented Mar 2, 2016

Dup of #15068

@yuyichao yuyichao closed this as completed Mar 2, 2016
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