Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

=> is imported for extension #39929

Closed
mbauman opened this issue Mar 5, 2021 · 2 comments · Fixed by #49368
Closed

=> is imported for extension #39929

mbauman opened this issue Mar 5, 2021 · 2 comments · Fixed by #49368
Labels
bug Indicates an unexpected problem or unintended behavior duplicate Indicates similar issues or pull requests

Comments

@mbauman
Copy link
Member

mbauman commented Mar 5, 2021

This surprised me; happens at both the REPL and in scripts (and no startup file).

julia> 1*2
2

julia> a*b = b*a # errors as I expect:
ERROR: error in method definition: function Base.* must be explicitly imported to be extended
Stacktrace:
 [1] top-level scope
   @ none:0
 [2] top-level scope
   @ REPL[2]:1

julia> 1=>2
1 => 2

julia> a=>b = b=>a
Error showing value of type UnionAll:
ERROR:
SYSTEM (REPL): showing an error caused an error
ERROR:
SYSTEM (REPL): caught exception of type StackOverflowError while trying to handle a nested exception; giving up

julia> ┌ Error: Error in the keymap
│   exception =
│    StackOverflowError:
│    Stacktrace:
│     [1] Pair(a::Int64, b::Int64)
│       @ Main ./REPL[4]:1
└ @ REPL.LineEdit ~/Julia/master/usr/share/julia/stdlib/v1.7/REPL/src/LineEdit.jl:2536
julia>
ERROR: fatal: error thrown and no exception handler available.
StackOverflowError()
Pair at ./REPL[4]:1
Pair at ./REPL[4]:1
# repeated many thousands of times... and crash

$ echo $?
1
@simeonschaub
Copy link
Member

duplicate of #25744?

@KristofferC
Copy link
Member

Dup of #37783 (and #25744).

@LilithHafner LilithHafner added duplicate Indicates similar issues or pull requests bug Indicates an unexpected problem or unintended behavior labels Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior duplicate Indicates similar issues or pull requests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants