Skip to content

Parsing anonymous function fails on 1.14 #60202

@IanButterworth

Description

@IanButterworth

bramtayl/Unzip.jl#12

Fails on julia 1.14

1.14

julia> function zip_missing(::Tuple{}, longer)
           map(function (second_one)
               (missing, second_one)
           end, longer)
       end
ERROR: ParseError:
# Error @ REPL[2]:2:18
function zip_missing(::Tuple{}, longer)
    map(function (second_one)
#                └──────────┘ ── Invalid signature in function definition
Stacktrace:
 [1] top-level scope
   @ REPL:1

1.12.1

julia> function zip_missing(::Tuple{}, longer)
           map(function (second_one)
               (missing, second_one)
           end, longer)
       end
zip_missing (generic function with 1 method)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions