Skip to content

Parsing issue when using threads macro #32467

Closed
@andreasnoack

Description

@andreasnoack
julia> identity(
         identity() do
           for i in 1:1
           end
         end
       )()

but

julia> identity(
         identity() do
           Threads.@threads for i in 1:1
ERROR: syntax: extra token "for" after end of expression

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or unintended behaviorparserLanguage parsing and surface syntax

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions