swiftlang/swift-package-manager

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

Aberta

#9.685 aberto em 5 de fev. de 2026

 (1 comentário) (0 reação) (0 responsável)Swift (1.462 forks)batch import
good first issue

Métricas do repositório

Stars
 (10.145 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador