Skip to content

[SR-12683] @main is no longer usable due to misdetection of top level code #55127

Open
@compnerd

Description

@compnerd
Previous ID SR-12683
Radar rdar://problem/62475602
Original Reporter @compnerd
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 16
Component/s
Labels Bug
Assignee None
Priority Medium

md5: d99a1a03d2003d32b1bfd6a2ae65a2fa

is duplicated by:

Issue Description:

There seems to be a recent regression with comment blocks and functions being treated as top level code which prevents the use of `@main`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions