@@ -2776,3 +2776,40 @@ for badf in [getfield_const_typename_bad1, getfield_const_typename_bad2]
2776
2776
@test code[end ] === Core. ReturnNode ()
2777
2777
@test_throws TypeError badf ()
2778
2778
end
2779
+
2780
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (sizeof), Vararg{DataType}}) == Int
2781
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (sizeof), DataType, Vararg}) == Int
2782
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (sizeof), DataType, Any, Vararg}) == Union{}
2783
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (=== ), Vararg}) == Bool
2784
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (=== ), Any, Vararg}) == Bool
2785
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (=== ), Any, Any, Vararg}) == Bool
2786
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (=== ), Any, Any, Any, Vararg}) == Union{}
2787
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (setfield!), Vararg{Symbol}}) == Symbol
2788
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (setfield!), Any, Vararg{Symbol}}) == Symbol
2789
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (setfield!), Any, Symbol, Vararg{Integer}}) == Integer
2790
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (setfield!), Any, Symbol, Integer, Vararg}) == Integer
2791
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (setfield!), Any, Symbol, Integer, Any, Vararg}) == Union{}
2792
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. _expr), Vararg}) == Expr
2793
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. _expr), Any, Vararg}) == Expr
2794
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. _expr), Any, Any, Vararg}) == Expr
2795
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (applicable), Vararg}) == Bool
2796
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (applicable), Any, Vararg}) == Bool
2797
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (applicable), Any, Any, Vararg}) == Bool
2798
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (applicable), Any, Any, Any, Vararg}) == Bool
2799
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (getfield), Tuple{Int}, Vararg}) == Int
2800
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (getfield), Tuple{Int}, Any, Vararg}) == Int
2801
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (getfield), Tuple{Int}, Any, Any, Vararg}) == Int
2802
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (getfield), Any, Any, Any, Any, Vararg}) == Union{}
2803
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Vararg}) == Type
2804
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Vararg}) == Type
2805
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Vararg}) == Type
2806
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Any, Vararg}) == Type
2807
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Any, Any, Vararg}) == Union{}
2808
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Vararg}) == Type
2809
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Vararg}) == Type
2810
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Any, Vararg}) == Type
2811
+ f_apply_cglobal (args... ) = cglobal (args... )
2812
+ @test Core. Compiler. return_type (f_apply_cglobal, Tuple{Vararg{Type{Int}}}) == Ptr
2813
+ @test Core. Compiler. return_type (f_apply_cglobal, Tuple{Any, Vararg{Type{Int}}}) == Ptr
2814
+ @test Core. Compiler. return_type (f_apply_cglobal, Tuple{Any, Type{Int}, Vararg{Type{Int}}}) == Ptr{Int}
2815
+ @test Core. Compiler. return_type (f_apply_cglobal, Tuple{Any, Type{Int}, Type{Int}, Vararg{Type{Int}}}) == Union{}
0 commit comments