diff --git a/doc/src/manual/modules.md b/doc/src/manual/modules.md index cf24474916bef..b4d1cde9527be 100644 --- a/doc/src/manual/modules.md +++ b/doc/src/manual/modules.md @@ -192,8 +192,6 @@ julia> nice(::Cat) = "nice 😸" ERROR: invalid method definition in Main: function NiceStuff.nice must be explicitly imported to be extended Stacktrace: [1] top-level scope - @ none:0 - [2] top-level scope @ none:1 ``` diff --git a/src/julia-syntax.scm b/src/julia-syntax.scm index 035d2a84e729d..00057498bbf9b 100644 --- a/src/julia-syntax.scm +++ b/src/julia-syntax.scm @@ -4131,8 +4131,9 @@ f(x) = yt(x) `(toplevel-butfirst ;; wrap in toplevel-butfirst so it gets moved higher along with ;; closure type definitions + (unnecessary ,(cadr e)) ,e - (thunk (lambda () (() () 0 ()) (block (return ,e)))))))) + (latestworld))))) ((null? cvs) `(block ,@sp-inits