Skip to content

Commit 9306cea

Browse files
committed
Consider both ends of an ambiguity when skipping some.
[skip ci]
1 parent 604c841 commit 9306cea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/base/aqua.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ let ambs = Aqua.detect_ambiguities(CUDA; recursive=true)
88
pkg_match(pkgname, pkgdir::AbstractString) = occursin(pkgname, pkgdir)
99

1010
# StaticArrays pirates a bunch of Random stuff...
11-
filter!(x -> !pkg_match("StaticArrays", pkgdir(first(x).module)), ambs)
11+
filter!(x -> !pkg_match("StaticArrays", pkgdir(x[1].module)) &&
12+
!pkg_match("StaticArrays", pkgdir(x[2].module)), ambs)
1213

1314
# if we'll fail this test, at least show which ambiguities were detected
1415
if length(ambs) > MAX_AMBIGUITIES

0 commit comments

Comments
 (0)