Open cstjean opened 2 years ago
Similar to what was noted in https://github.com/FluxML/MacroTools.jl/issues/40#issuecomment-357466077,
julia> @capture :(myvariable = 2) (lhs_Symbol = rhs_) true julia> @capture :(myvariable = 2) (lhs_Symbol = rhs_) | someotherpat false julia> @capture :(myvariable = 2) (lhs_ = rhs_) | someotherpat true
The second match should be true as well.
There's a much simpler example:
julia> @capture(:x, a_Symbol) true julia> @capture(:x, (a_Symbol) | (a_::b_)) false
Similar to what was noted in https://github.com/FluxML/MacroTools.jl/issues/40#issuecomment-357466077,
The second match should be true as well.