Files
swift-mirror/test/attr/ApplicationMain/attr_main_enum_extension.swift
Nate Chandler 2676c2aed2 @main: Allowed attribute on extensions.
Previously the @main attribute could only be applied to
NominalTypeDecls.  Here, that limitation is lifted so that the attribute
can be applied to ExtensionDecls.
2020-04-17 09:53:46 -07:00

14 lines
154 B
Swift

// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s
enum EntryPoint {
}
@main
extension EntryPoint {
static func main() {
}
}