Skip to content

Commit f1cb99a

Browse files
Fix Julia 1.12 deprecation warning for Pipe constructor
This commit addresses issue #412 where Julia 1.12 triggers a warning during precompilation about the Pipe constructor being extended without explicit qualification. The warning occurred because `@deprecate Pipe Tube` was ambiguous - Julia couldn't determine if we were creating a new function or extending `Base.Pipe`. Fix: Added explicit `function Pipe end` declaration before the deprecation to clearly indicate we're creating a new generic function, not extending Base.Pipe. Fixes #412 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 09a3f39 commit f1cb99a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Hydraulic/IsothermalCompressible/components.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ Constant length internal flow model discretized by `N` (`FixedVolume`: `N`, `Tub
202202

203203
return System(eqs, t, vars, pars; name, systems = [ports; pipe_bases; volumes])
204204
end
205+
function Pipe end
205206
@deprecate Pipe Tube
206207

207208
"""

0 commit comments

Comments
 (0)