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.
2 parents afa83fd + e68c0e7 commit 45a79a7Copy full SHA for 45a79a7
src/ModelingToolkit.jl
@@ -112,8 +112,11 @@ macro import_mtkbase()
112
name in banned_names && continue
113
startswith(string(name), '#') && continue
114
push!(inner_using_expr.args, Expr(:., name))
115
- if Base.ispublic(MTKBase, name) && !Base.isexported(MTKBase, name)
116
- push!(inner_public_expr.args, name)
+ # Base.ispublic was added in Julia 1.11
+ @static if VERSION >= v"1.11"
117
+ if Base.ispublic(MTKBase, name) && !Base.isexported(MTKBase, name)
118
+ push!(inner_public_expr.args, name)
119
+ end
120
end
121
122
0 commit comments