@@ -1829,8 +1829,8 @@ end
18291829@test Core. Compiler. return_type (Core. apply_type, Tuple{Type{Union},Any,Any}) == Type
18301830@test Core. Compiler. return_type (Core. apply_type, Tuple{Type{Union},Int}) == Union{}
18311831@test Core. Compiler. return_type (Core. apply_type, Tuple{Type{Union},Any,Int}) == Union{}
1832- @test Core. Compiler. return_type (Core. apply_type, Tuple{Any}) == Type
1833- @test Core. Compiler. return_type (Core. apply_type, Tuple{Any,Any}) == Type
1832+ @test Core. Compiler. return_type (Core. apply_type, Tuple{Any}) == Any
1833+ @test Core. Compiler. return_type (Core. apply_type, Tuple{Any,Any}) == Any
18341834
18351835# PR 27351, make sure optimized type intersection for method invalidation handles typevars
18361836
@@ -2834,9 +2834,9 @@ end
28342834@test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Vararg}) == Union{Type, TypeVar}
28352835@test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Any, Vararg}) == Union{Type, TypeVar}
28362836@test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Any, Any, Vararg}) == Union{}
2837- @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Vararg}) == Type
2838- @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Vararg}) == Type
2839- @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Any, Vararg}) == Type
2837+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Vararg}) == Any
2838+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Vararg}) == Any
2839+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Any, Vararg}) == Any
28402840f_apply_cglobal (args... ) = cglobal (args... )
28412841@test Core. Compiler. return_type (f_apply_cglobal, Tuple{Vararg{Type{Int}}}) == Ptr
28422842@test Core. Compiler. return_type (f_apply_cglobal, Tuple{Any, Vararg{Type{Int}}}) == Ptr
0 commit comments