-
Notifications
You must be signed in to change notification settings - Fork 10
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
Bug in static_methods #23
Comments
Does this work on 1.5? |
It looks like the back edge is not triggering when |
Yep, works on 1.5 for me: julia> using Tricks
julia> let
f(x) = x + 1
f(::Int) = 1
static_methods(f)
end
# 2 methods:
[1] (::var"#f#3")(::Int64) in Main at REPL[6]:3
[2] (::var"#f#3")(x) in Main at REPL[6]:2
julia> let
f(x) = x + 1
@show (length ∘ collect ∘ static_methods)(f)
f(::Int) = 1
static_methods(f)
end
((length ∘ collect) ∘ static_methods)(f) = 1
# 2 methods:
[1] (::var"#f#4")(::Int64) in Main at REPL[7]:4
[2] (::var"#f#4")(x) in Main at REPL[7]:2
julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1* (2020-11-09 13:37 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: AMD Ryzen 5 2600 Six-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, znver1)
Environment:
JULIA_NUM_THREADS = 6
(@v1.5) pkg> st
Status `~/.julia/environments/v1.5/Project.toml`
[410a4b4d] Tricks v0.1.3
(@v1.5) pkg> test Tricks
Testing Tricks
Status `/tmp/jl_R6VQz9/Project.toml`
[410a4b4d] Tricks v0.1.3
[b77e0a4c] InteractiveUtils
[8dfed614] Test
Status `/tmp/jl_R6VQz9/Manifest.toml`
[410a4b4d] Tricks v0.1.3
[2a0f44e3] Base64
[b77e0a4c] InteractiveUtils
[56ddb016] Logging
[d6f4376e] Markdown
[9a3f8284] Random
[9e88b42a] Serialization
[8dfed614] Test
Test Summary: | Pass Total
static_hasmethod | 35 35
Test Summary: | Pass Total
compat_hasmethod | 1 1
Test Summary: | Pass Total
static_methods | 8 8
Testing Tricks tests passed |
Hmm might have to learn to use |
We should probably track this down before 1.6 is released in case it's a real bug in julia. I don't know anything about git bisect, do you have any pointers? |
I also don't know anything about it. |
Okay, reading the docs it doesn't see, too hard. I'll it now. |
Nvm, this is fixed now on v1.6.0-rc1. |
Run on version 1.6 beta 1:
The related tests are also failing for me locally.
The text was updated successfully, but these errors were encountered: