@@ -994,7 +994,7 @@ function show_mi(io::IO, l::Core.MethodInstance, from_stackframe::Bool=false)
994
994
show (io, def)
995
995
else
996
996
print (io, " MethodInstance for " )
997
- show_tuple_as_call (io, def. name, l. specTypes, false , nothing , nothing , true )
997
+ show_tuple_as_call (io, def. name, l. specTypes; qualified = true )
998
998
end
999
999
else
1000
1000
print (io, " Toplevel MethodInstance thunk" )
@@ -1024,7 +1024,7 @@ function show(io::IO, mi_info::Core.Compiler.Timings.InferenceFrameInfo)
1024
1024
else
1025
1025
print (io, " InferenceFrameInfo for " )
1026
1026
argnames = [isa (a, Core. Const) ? (isa (a. val, Type) ? " " : a. val) : " " for a in mi_info. slottypes[1 : mi_info. nargs]]
1027
- show_tuple_as_call (io, def. name, mi. specTypes, false , nothing , argnames, true )
1027
+ show_tuple_as_call (io, def. name, mi. specTypes; argnames, qualified = true )
1028
1028
end
1029
1029
else
1030
1030
linetable = mi. uninferred. linetable
@@ -2176,7 +2176,9 @@ function print_within_stacktrace(io, s...; color=:normal, bold=false)
2176
2176
end
2177
2177
end
2178
2178
2179
- function show_tuple_as_call (io:: IO , name:: Symbol , sig:: Type , demangle= false , kwargs= nothing , argnames= nothing , qualified= false )
2179
+ function show_tuple_as_call (io:: IO , name:: Symbol , sig:: Type ;
2180
+ demangle= false , kwargs= nothing , argnames= nothing ,
2181
+ qualified= false , hasfirst= true )
2180
2182
# print a method signature tuple for a lambda definition
2181
2183
if sig === Tuple
2182
2184
print (io, demangle ? demangle_function_name (name) : name, " (...)" )
@@ -2189,12 +2191,16 @@ function show_tuple_as_call(io::IO, name::Symbol, sig::Type, demangle=false, kwa
2189
2191
env_io = IOContext (env_io, :unionall_env => sig. var)
2190
2192
sig = sig. body
2191
2193
end
2194
+ n = 1
2192
2195
sig = (sig:: DataType ). parameters
2193
- show_signature_function (env_io, sig[1 ], demangle, " " , false , qualified)
2196
+ if hasfirst
2197
+ show_signature_function (env_io, sig[1 ], demangle, " " , false , qualified)
2198
+ n += 1
2199
+ end
2194
2200
first = true
2195
2201
print_within_stacktrace (io, " (" , bold= true )
2196
2202
show_argnames = argnames != = nothing && length (argnames) == length (sig)
2197
- for i = 2 : length (sig) # fixme (iter): `eachindex` with offset?
2203
+ for i = n : length (sig) # fixme (iter): `eachindex` with offset?
2198
2204
first || print (io, " , " )
2199
2205
first = false
2200
2206
if show_argnames
0 commit comments