Skip to content

TypeError in methods(Core.Vararg) #34690

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

Closed
yurivish opened this issue Feb 7, 2020 · 3 comments
Closed

TypeError in methods(Core.Vararg) #34690

yurivish opened this issue Feb 7, 2020 · 3 comments

Comments

@yurivish
Copy link
Contributor

yurivish commented Feb 7, 2020

Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.6.0)
  CPU: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

julia> methods(Core.Symbol) # This works
# 6 methods for type constructor:
[1] Symbol(s::String) in Core at boot.jl:435
[2] Symbol(a::Array{UInt8,1}) in Core at boot.jl:440
[3] Symbol(s::Symbol) in Core at boot.jl:444
[4] Symbol(s::AbstractString) in Base at strings/basic.jl:205
[5] Symbol(x::Enum) in Base.Enums at Enums.jl:26
[6] Symbol(x...) in Base at strings/basic.jl:206

julia> methods(Core.Vararg) # This does not
ERROR: TypeError: in Type, in parameter, expected Type, got Vararg
Stacktrace:
 [1] signature_type(::Any, ::Any) at ./reflection.jl:767
 [2] _methods at ./reflection.jl:830 [inlined]
 [3] methods(::Any, ::Any) at ./reflection.jl:875
 [4] methods(::Any) at ./reflection.jl:890
 [5] top-level scope at REPL[24]:1

This came up in a code analyzer I'm writing which looks through symbols in lowered code (:Vararg), determines its defining module (Core), then checks whether it has any methods defined.

@yurivish yurivish changed the title TypeError in methods methods TypeError Feb 7, 2020
@yurivish yurivish changed the title methods TypeError TypeError in methods(Core.Vararg) Feb 7, 2020
@ranocha
Copy link
Member

ranocha commented Jan 13, 2021

Closes ... #34690 ...

It looks like this should have been closed by #38136?

@vtjnash vtjnash closed this as completed Jan 13, 2021
@yurivish
Copy link
Contributor Author

yurivish commented Jan 13, 2021

Is this PR included in 1.6 beta1? I'm having trouble using GitHub to tell (v1.5.3...v1.6.0-beta1) isn't loading) and still see the issue on 1.6 beta1.

Edit: it appears not: #39239 (comment)

@Keno
Copy link
Member

Keno commented Jan 14, 2021

It is not.

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

4 participants