Skip to content

@register ambiguity #788

Closed
Closed
@ArnoStrouwen

Description

@ArnoStrouwen

Strange ambiguity pops up, even though @register is nowhere used.
I tried the same in Symbolics, SymbolicUtils and ModelingToolkit and did not find the same behavior there.

julia> using Catalyst
julia> using Test
julia> Test.detect_ambiguities(Catalyst)
WARNING: using deprecated binding Symbolics.@register in Catalyst.
, use @register_symbolic instead.
Catalyst.@register is deprecated, use Symbolics.@register_symbolic instead.
ERROR: use of deprecated variable: Catalyst.@register
Stacktrace:
 [1] detect_ambiguities(mods::Module; recursive::Bool, ambiguous_bottom::Bool, allowed_undefineds::Any)
   @ Test C:\Users\arno\.julia\juliaup\julia-1.10.0+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Test\src\Test.jl:1968
 [2] detect_ambiguities(mods::Module)
   @ Test C:\Users\arno\.julia\juliaup\julia-1.10.0+0.x64.w64.mingw32\share\julia\stdlib\v1.10\Test\src\Test.jl:1921
 [3] top-level scope
   @ REPL[4]:1

I do not understand how it gets past:
https://github.com/JuliaLang/julia/blob/master/stdlib/Test/src/Test.jl#L2078
Since:

julia> Base.isdeprecated(Catalyst, Symbol("@register"))
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions