Skip to content

Commit 03533fd

Browse files
committed
test case
1 parent bf242fb commit 03533fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/compiler/inference.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4191,3 +4191,6 @@ end
41914191

41924192
# Test that Const ⊑ PartialStruct respects vararg
41934193
@test Const((1,2)) PartialStruct(Tuple{Vararg{Int}}, [Const(1), Vararg{Int}])
4194+
4195+
# inference of abstractly-typed convert calls: https://github.com/JuliaLang/julia/pull/46573
4196+
@test Base.return_types(convert, (Type{<:Number}, Number)) == Any[Number, Number]

0 commit comments

Comments
 (0)