@@ -1828,8 +1828,8 @@ end
18281828@test Core. Compiler. return_type (Core. apply_type, Tuple{Type{Union},Any,Any}) == Type
18291829@test Core. Compiler. return_type (Core. apply_type, Tuple{Type{Union},Int}) == Union{}
18301830@test Core. Compiler. return_type (Core. apply_type, Tuple{Type{Union},Any,Int}) == Union{}
1831- @test Core. Compiler. return_type (Core. apply_type, Tuple{Any}) == Type
1832- @test Core. Compiler. return_type (Core. apply_type, Tuple{Any,Any}) == Type
1831+ @test Core. Compiler. return_type (Core. apply_type, Tuple{Any}) == Any
1832+ @test Core. Compiler. return_type (Core. apply_type, Tuple{Any,Any}) == Any
18331833
18341834# PR 27351, make sure optimized type intersection for method invalidation handles typevars
18351835
@@ -2833,9 +2833,9 @@ end
28332833@test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Vararg}) == Type
28342834@test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Any, Vararg}) == Type
28352835@test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Any, Any, Vararg}) == Union{}
2836- @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Vararg}) == Type
2837- @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Vararg}) == Type
2838- @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Any, Vararg}) == Type
2836+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Vararg}) == Any
2837+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Vararg}) == Any
2838+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Any, Vararg}) == Any
28392839f_apply_cglobal (args... ) = cglobal (args... )
28402840@test Core. Compiler. return_type (f_apply_cglobal, Tuple{Vararg{Type{Int}}}) == Ptr
28412841@test Core. Compiler. return_type (f_apply_cglobal, Tuple{Any, Vararg{Type{Int}}}) == Ptr
0 commit comments