swiftlang/swift-package-manager

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

Open

#9685 aperta il 5 feb 2026

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Swift (1462 fork)batch import
good first issue

Metriche repository

Star
 (10.145 star)
Metriche merge PR
 (Merge medio 9g 13h) (90 PR mergiate in 30 g)

Descrizione

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

Guida contributor