mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously the @main attribute could only be applied to NominalTypeDecls. Here, that limitation is lifted so that the attribute can be applied to ExtensionDecls.
14 lines
154 B
Swift
14 lines
154 B
Swift
// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s
|
|
|
|
enum EntryPoint {
|
|
}
|
|
|
|
@main
|
|
extension EntryPoint {
|
|
static func main() {
|
|
}
|
|
}
|
|
|
|
|
|
|