@@ -670,8 +670,8 @@ let fieldtype_tfunc = Core.Compiler.fieldtype_tfunc,
670
670
@test fieldtype_tfunc (Union{Type{Base. RefValue{<: Real }}, Type{Int32}}, Const (:x )) == Const (Real)
671
671
@test fieldtype_tfunc (Const (Union{Base. RefValue{<: Real }, Type{Int32}}), Const (:x )) == Const (Real)
672
672
@test fieldtype_tfunc (Type{Union{Base. RefValue{T}, Type{Int32}}} where {T<: Real }, Const (:x )) == Type{<: Real }
673
- @test fieldtype_tfunc (Type{<: Tuple }, Const (1 )) == Type
674
- @test fieldtype_tfunc (Type{<: Tuple }, Any) == Type
673
+ @test fieldtype_tfunc (Type{<: Tuple }, Const (1 )) == Any
674
+ @test fieldtype_tfunc (Type{<: Tuple }, Any) == Any
675
675
@test fieldtype_nothrow (Type{Base. RefValue{<: Real }}, Const (:x ))
676
676
@test ! fieldtype_nothrow (Type{Union{}}, Const (:x ))
677
677
@test ! fieldtype_nothrow (Union{Type{Base. RefValue{T}}, Int32} where {T<: Real }, Const (:x ))
@@ -2940,10 +2940,10 @@ end
2940
2940
@test Core. Compiler. return_type (apply26826, Tuple{typeof (getfield), Tuple{Int}, Any, Vararg}) == Int
2941
2941
@test Core. Compiler. return_type (apply26826, Tuple{typeof (getfield), Tuple{Int}, Any, Any, Vararg}) == Int
2942
2942
@test Core. Compiler. return_type (apply26826, Tuple{typeof (getfield), Any, Any, Any, Any, Vararg}) == Union{}
2943
- @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Vararg}) == Union{Type, TypeVar}
2944
- @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Vararg}) == Union{Type, TypeVar}
2945
- @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Vararg}) == Union{Type, TypeVar}
2946
- @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Any, Vararg}) == Union{Type, TypeVar}
2943
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Vararg}) == Any
2944
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Vararg}) == Any
2945
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Vararg}) == Any
2946
+ @test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Any, Vararg}) == Any
2947
2947
@test Core. Compiler. return_type (apply26826, Tuple{typeof (fieldtype), Any, Any, Any, Any, Vararg}) == Union{}
2948
2948
@test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Vararg}) == Any
2949
2949
@test Core. Compiler. return_type (apply26826, Tuple{typeof (Core. apply_type), Any, Vararg}) == Any
0 commit comments