swiftlang/swift-package-manager

`containsAtMain` does not handle `@main` on the same line as a multi-line end comment

Open

#9 685 ouverte le 5 févr. 2026

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Swift (1 462 forks)batch import
good first issue

Métriques du dépôt

Stars
 (10 145 stars)
Métriques de merge PR
 (Merge moyen 9j 13h) (90 PRs mergées en 30 j)

Description

The containsAtMain function call does not correctly return true with the following input

                /*
                This is a multi-line comment
                /* @main
                struct MyApp {
                    static func main() {
                        print("Hello, World!")
                    }
                }

Search for the GitHub issue in the swift-package-manager repository to located an impacted automated test

Guide contributeur