Skip to content

julia nightly build breaks parsing of let inside quote #49984

@gafter

Description

@gafter
% julia-1.9 r.jl
Hello, World!
% julia-nightly r.jl
ERROR: LoadError: syntax: invalid let syntax around /Users/nealgafter/Repos/Rematch2.jl/tmp/r.jl:5
Stacktrace:
 [1] top-level scope
   @ ~/Repos/Rematch2.jl/tmp/r.jl:11
in expression starting at /Users/nealgafter/Repos/Rematch2.jl/tmp/r.jl:11
% julia-nightly
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.10.0-DEV.1392 (2023-05-27)
 _/ |\__'_|_|_|\__'_|  |  Commit 248ceda3c49 (1 day old master)
|__/                   |

julia> versioninfo(); exit(0)
Julia Version 1.10.0-DEV.1392
Commit 248ceda3c49 (2023-05-27 13:39 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 12 × Apple M2 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
  Threads: 1 on 8 virtual cores
Environment:
  JULIA_SSL_CA_ROOTS_PATH = 
  JULIA_EDITOR = vim
% cat -n r.jl 
     1	s = Set{Symbol}([:a, :b, :c])
     2	
     3	macro x()
     4	    quote
     5	        let $(s...)
     6	            println("Hello, World!")
     7	        end
     8	    end
     9	end
    10	
    11	@x
% 

I installed julia by downloading the Apple silicon package, mounting it, and dragging the julia app into Applications.

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionRegression in behavior compared to a previous version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions