Skip to content

Commit

Permalink
Protect access to .instance (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Sep 5, 2023
1 parent 002e85a commit 0fd3246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Aqua"
uuid = "4c88cf16-eb10-579e-8560-4a9242c79595"
authors = ["Takafumi Arakaki <[email protected]> and contributors"]
version = "0.6.6"
version = "0.6.7"

[deps]
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
Expand Down
2 changes: 1 addition & 1 deletion src/piracy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function is_foreign_method(@nospecialize(T::DataType), pkg::Base.PkgId; treat_as

# fallback to general code
return !(T in treat_as_own) &&
!(T <: Function && T.instance in treat_as_own) &&
!(T <: Function && isdefined(T, :instance) && T.instance in treat_as_own) &&
is_foreign(T, pkg; treat_as_own = treat_as_own)
end

Expand Down

0 comments on commit 0fd3246

Please sign in to comment.