SIGN IN SIGN UP

Base: avoid losing Method provenance in `@enum` (#61932)

Improves stacktraces and `methods(...)` queries for any Methods defined
through @enum:

```julia
julia> @enum Fruit Apple=1 Banana=2
julia> methods(Fruit)
 [1] Fruit(x::Integer)
     @ REPL[6]:1
```

versus before:
```julia
julia> methods(Fruit)
 [1] Fruit(x::Integer)
     @ Enums.jl:211
```
C
Cody Tapscott committed
d2456dcffe506039f83805de488ccf9591baee49
Parent: bcb15c3
Committed by GitHub <noreply@github.com> on 5/29/2026, 3:01:52 AM