Skip to content

Cannot add documentation to each field of a type using @aml #162

Open
@singularitti

Description

The suggested way of adding documentation to each field of a type introduced in Julia's official documentation is no longer workable in @aml:

julia> @aml mutable struct Body "body"
           "field h1"
           h1, "~"
           "field p"
           p::Vector{String}, "~"
       end
ERROR: LoadError: UndefRefError: access to undefined reference
Stacktrace:
 [1] getindex
   @ ./array.jl:801 [inlined]
 [2] iterate (repeats 2 times)
   @ ./array.jl:777 [inlined]
 [3] var"@aml"(__source__::LineNumberNode, __module__::Module, expr::Any)
   @ AcuteML ~/.julia/packages/AcuteML/pT7qV/src/AcuteML.jl:428
in expression starting at REPL[8]:4
julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.6.0)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions