You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A minor error handling issue. I would expect a StackOverflowError but instead it crashed.
julia> mutable struct Bar end
julia> Base.:(==)(a::Bar, b::Bar) = a == b
julia> a = Bar(); b = Bar();
julia> a == b
Bus error: 10
It works fine for immutable struct:
julia> struct Foo end
julia> Base.:(==)(a::Foo, b::Foo) = a == b
julia> a = Foo(); b = Foo();
julia> a == b
ERROR: StackOverflowError:
Stacktrace:
[1] ==(::Foo, ::Foo) at ./REPL[15]:1 (repeats 80000 times)
The text was updated successfully, but these errors were encountered:
A minor error handling issue. I would expect a
StackOverflowError
but instead it crashed.It works fine for immutable struct:
The text was updated successfully, but these errors were encountered: