Skip to content

Commit 6b0ef4f

Browse files
Merge pull request #569 from SciML/no_inject_base
Do not inject getproperty when the module is Base and make simpler
2 parents dba32a9 + 001d8a5 commit 6b0ef4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/function_registration.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ function inject_registered_module_functions(expr)
135135
if !isnothing(f_name)
136136
# Set the calling module to the module that registered it.
137137
mod = get(registered_external_functions, f_name, f_module)
138-
if !isnothing(mod)
139-
x.args[1] = :(getproperty($mod, $(Meta.quot(f_name))))
138+
if !isnothing(mod) && mod != Base
139+
x.args[1] = :($mod.$f_name)
140140
end
141141
end
142142

0 commit comments

Comments
 (0)