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

methods of closure Error showing value of type Base.MethodList #20111

Closed
TotalVerb opened this issue Jan 18, 2017 · 0 comments
Closed

methods of closure Error showing value of type Base.MethodList #20111

TotalVerb opened this issue Jan 18, 2017 · 0 comments
Labels
display and printing Aesthetics and correctness of printed representations of objects.

Comments

@TotalVerb
Copy link
Contributor

TotalVerb commented Jan 18, 2017

julia> K(x) = y -> x
K (generic function with 1 method)

julia> methods(K(1))
# 1 method for generic function "(::#1)":
Error showing value of type Base.MethodList:
ERROR: type UnionAll has no field name
Stacktrace:
 [1] #show#365(::Nullable{DataType}, ::Function, ::IOContext{Base.Terminals.TTYTerminal}, ::Method) at ./methodshow.jl:95
 [2] (::Base.#kw##show)(::Array{Any,1}, ::Base.#show, ::IOContext{Base.Terminals.TTYTerminal}, ::Method) at ./<missing>:0
 [3] show_method_table(::IOContext{Base.Terminals.TTYTerminal}, ::Base.MethodList, ::Int64, ::Bool) at ./methodshow.jl:147
 [4] show(::IOContext{Base.Terminals.TTYTerminal}, ::MIME{Symbol("text/plain")}, ::Base.MethodList) at ./replutil.jl:4
 [5] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::MIME{Symbol("text/plain")}, ::Base.MethodList) at ./REPL.jl:122
 [6] display(::Base.REPL.REPLDisplay{Base.REPL.LineEditREPL}, ::Base.MethodList) at ./REPL.jl:125
 [7] display(::Base.MethodList) at ./multimedia.jl:183

possibly related: #20108, #19998

@TotalVerb TotalVerb changed the title methods of closure bug methods of closure Error showing value of type Base.MethodList Jan 18, 2017
ihnorton added a commit to ihnorton/julia that referenced this issue Jan 19, 2017
@kshyatt kshyatt added the display and printing Aesthetics and correctness of printed representations of objects. label Jan 19, 2017
ihnorton added a commit to ihnorton/julia that referenced this issue Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display and printing Aesthetics and correctness of printed representations of objects.
Projects
None yet
Development

No branches or pull requests

2 participants