I want to cross ref a function defined in a later submodule. Here is an example:
module A
"""
[`foo`](@ref)
"""
module B
end
module C
""" foo """
function foo end
end
end
This SO answer suggests that foo
should be imported in the B
submodule, however one cannot import C
in B
since it’s defined later (and in my more complex usecase it’s not possible to change the order.
So
module B
using ..C: foo
end
naturally does not work