mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
9 lines
249 B
Swift
9 lines
249 B
Swift
// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s
|
|
|
|
@main // expected-error{{'MyBase' is annotated with '@main' and must provide a main static function}}
|
|
struct MyBase {
|
|
static func main(_ argc: Int, _ argv: [String]) {
|
|
}
|
|
}
|
|
|