swiftlang/swift-package-manager

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

Open

#9,685 建立於 2026年2月5日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Swift (10,145 star) (1,462 fork)batch import
good first issue

描述

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

貢獻者指南