@@ -760,21 +760,27 @@ end
760
760
# arrayref
761
761
# --------
762
762
763
- let effects = Base. infer_effects (Base. arrayref, (Vector{Any},Int))
764
- @test Core. Compiler. is_consistent_if_inaccessiblememonly (effects)
765
- @test Core. Compiler. is_effect_free (effects)
766
- @test ! Core. Compiler. is_nothrow (effects)
767
- @test Core. Compiler. is_terminates (effects)
763
+ for tt = Any[(Bool,Vector{Any},Int),
764
+ (Bool,Matrix{Any},Int,Int)]
765
+ @testset let effects = Base. infer_effects (Base. arrayref, tt)
766
+ @test Core. Compiler. is_consistent_if_inaccessiblememonly (effects)
767
+ @test Core. Compiler. is_effect_free (effects)
768
+ @test ! Core. Compiler. is_nothrow (effects)
769
+ @test Core. Compiler. is_terminates (effects)
770
+ end
768
771
end
769
772
770
773
# arrayset
771
774
# --------
772
775
773
- let effects = Base. infer_effects (Base. arrayset, (Vector{Any},Any,Int))
774
- @test Core. Compiler. is_consistent_if_inaccessiblememonly (effects)
775
- @test Core. Compiler. is_effect_free_if_inaccessiblememonly (effects)
776
- @test ! Core. Compiler. is_nothrow (effects)
777
- @test Core. Compiler. is_terminates (effects)
776
+ for tt = Any[(Bool,Vector{Any},Any,Int),
777
+ (Bool,Matrix{Any},Any,Int,Int)]
778
+ @testset let effects = Base. infer_effects (Base. arrayset, tt)
779
+ @test Core. Compiler. is_consistent_if_inaccessiblememonly (effects)
780
+ @test Core. Compiler. is_effect_free_if_inaccessiblememonly (effects)
781
+ @test ! Core. Compiler. is_nothrow (effects)
782
+ @test Core. Compiler. is_terminates (effects)
783
+ end
778
784
end
779
785
# nothrow for arrayset
780
786
@test Base. infer_effects ((Vector{Int},Int,Int)) do a, v, i
0 commit comments