Skip to content

Logging inside of a @match throws an AssertionError on Julia 1.12 #123

@Drvi

Description

@Drvi

MRE:

julia> @match 1 begin
          1 => @info "aaa"
       end
ERROR: AssertionError: Assertion to tell the compiler about the definedness of this variable
Stacktrace:
 [1] top-level scope
   @ REPL[30]:2
 [2] macro expansion
   @ logging/logging.jl:415 [inlined]
julia> pkgversion(Match)
v"2.4.0"

julia> versioninfo()
Julia Version 1.12.0-rc1
Commit 228edd6610b (2025-07-12 20:11 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: macOS (arm64-apple-darwin24.0.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, apple-m1)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 8 virtual cores)

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