We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ae3c19 commit db4a0aaCopy full SHA for db4a0aa
src/Aqua.jl
@@ -4,6 +4,8 @@ using Base: PkgId, UUID
4
using Pkg: Pkg, TOML
5
using Test
6
7
+const HAS_EXTENSIONS = isdefined(Base, :get_extension) # introduced in v1.9
8
+
9
try
10
findnext('a', "a", 1)
11
catch
src/piracy.jl
@@ -1,5 +1,7 @@
1
module Piracy
2
3
+using Aqua: HAS_EXTENSIONS
if VERSION >= v"1.6-"
using Test: is_in_mods
else
@@ -159,6 +161,9 @@ end
159
161
160
162
function is_pirate(meth::Method; treat_as_own = Union{Function,Type}[])
163
method_pkg = Base.PkgId(meth.module)
164
+ @static if HAS_EXTENSIONS
165
+ method_pkg = get(Base.EXT_PRIMED, method_pkg, method_pkg)
166
+ end
167
168
signature = Base.unwrap_unionall(meth.sig)
169
0 commit comments