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

Fix quotes of <main> #3384

Merged
merged 1 commit into from
Oct 9, 2024
Merged

Fix quotes of <main> #3384

merged 1 commit into from
Oct 9, 2024

Commits on Oct 8, 2024

  1. Fix quotes of <main>

    This changed since 3.4.0-preview1.
    
    ```
    % docker run --platform linux/amd64 --rm -it ghcr.io/ruby/all-ruby env LANG=C.UTF-8 ALL_RUBY_SINCE=ruby-3.3 ./all-ruby -e 'def foo; time; end; foo'
    ruby-3.3.0          -e:1:in `foo': undefined local variable or method `time' for main (NameError)
    
                        def foo; time; end; foo
                                 ^^^^
                            from -e:1:in `<main>'
                    exit 1
    ...
    ruby-3.3.4          -e:1:in `foo': undefined local variable or method `time' for main (NameError)
    
                        def foo; time; end; foo
                                 ^^^^
                            from -e:1:in `<main>'
                    exit 1
    ruby-3.4.0-preview1 -e:1:in 'Object#foo': undefined local variable or method 'time' for main (NameError)
    
                        def foo; time; end; foo
                                 ^^^^
                            from -e:1:in '<main>'
                    exit 1
    ```
    znz committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    271361d View commit details
    Browse the repository at this point in the history