Closed timholy closed 3 years ago
The def field of Core.MethodInstance is typed as Union{Method,Module}. Consequently, we should not assume that it's a Method.
def
Core.MethodInstance
Union{Method,Module}
Method
Unfortunately I've not been able to come up with a simple test that fails without this change, though I have seen failures in real-world usage.
Let's see if this passes with #153 merged.
The
def
field ofCore.MethodInstance
is typed asUnion{Method,Module}
. Consequently, we should not assume that it's aMethod
.Unfortunately I've not been able to come up with a simple test that fails without this change, though I have seen failures in real-world usage.