Closed
Description
Normally, the @doc
macro returns a Markdown.MD
object:
% julia -e "println(typeof(@doc Real))"
Markdown.MD
However, in nightly (1.12.0-DEV.1030) the return type is Base.Docs.DocStr
unless the REPL
module is imported:
% ./julia -e "println(typeof(@doc Real))"
Base.Docs.DocStr
% ./julia -e "import REPL; println(typeof(@doc Real))"
Markdown.MD
This seems like a bug — I noticed it because of a test failure JuliaIO/StructIO.jl#30 in the StructIO.jl package (since package tests do not load the REPL module by default, a test for a documentation string was failing).