mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
303 B
Swift
11 lines
303 B
Swift
// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s
|
|
|
|
@main @dynamicMemberLookup // expected-error{{'Main' is annotated with '@main' and must provide a main static function}}
|
|
struct Main {
|
|
subscript(dynamicMember member: String) -> () -> Void {
|
|
return {
|
|
}
|
|
}
|
|
}
|
|
|