Skip to content

Commit 58271af

Browse files
authored
Version-gate tests for previous resolving condition
1 parent 1bd3220 commit 58271af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ end
592592
SaturatingModule.NestedUncheckedModule.testfunc()
593593
end
594594

595+
if VERSION < v"1.12" # No longer necessary on 1.12+
595596
@testset "default methods error if Base symbol already resolved" begin
596597
x = 1 + 1
597598
@test_throws ErrorException @default_checked
@@ -619,6 +620,7 @@ end
619620
@test_throws ErrorException @default_saturating
620621
end))
621622
end
623+
end
622624

623625
@testset "default methods warn if default is changed" begin
624626
(@__MODULE__).eval(:(

0 commit comments

Comments
 (0)