swiftlang/swift-package-manager

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

Offen

#9.685 geöffnet am 05.02.2026

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Swift (1.462 Forks)batch import
good first issue

Repository-Metriken

Stars
 (10.145 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide