Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ isType(t::ANY) = isa(t,DataType) && is((t::DataType).name,Type.name)
# true if Type is inlineable as constant
isconstType(t::ANY,b::Bool) =
isType(t) && !has_typevars(t.parameters[1],b) &&
!issubtype(Tuple{Vararg}, t.parameters[1]) # work around inference bug #18450
!issubtype(Type{Tuple{Vararg}}, t) # work around inference bug #18450

const IInf = typemax(Int) # integer infinity
const n_ifunc = reinterpret(Int32,arraylen)+1
Expand Down
3 changes: 3 additions & 0 deletions test/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -368,3 +368,6 @@ end
# issue #18450
f18450() = ifelse(true, Tuple{Vararg{Int}}, Tuple{Vararg})
@test f18450() == Tuple{Vararg{Int}}

# issue #18569
@test Core.Inference.isconstType(Type{Tuple},true)