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

Consistently parse A <: B as a Expr(:comparison, A, :(<:), B) #9582

Closed
wants to merge 1 commit into from

Commits on Jan 3, 2015

  1. Consistently parse A <: B as a Expr(:comparison, A, :(<:), B)

    Should fix #9503
    
    This is a backwards incompatible change, note that before
    ```julia
    type A <: B
    end
    ```
    
    would be parsed as:
    ```julia
    Expr(:type, true, Expr(:(<:), :A, :B), Expr(:block,))
    ```
    
    now it is parsed as
    ```julia
    Expr(:type, true, Expr(:comparison, :A, :(<:), :B), Expr(:block,))
    ```
    
    chained subtype comparisons for type/immutable are still disallowed
    ```julia
    type A <: B <: C
    end
    ```
    jakebolewski committed Jan 3, 2015
    1 Configuration menu
    Copy the full SHA
    2295f2c View commit details
    Browse the repository at this point in the history