Files
swift-mirror/test/attr/ApplicationMain/attr_main_tuple_extension.swift
Slava Pestov fd06bd87aa AST: Allow the extended type of an extension to refer to be a tuple type
Either directly, or via a type alias.
2023-09-05 23:21:26 -04:00

12 lines
190 B
Swift

// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s
@main
extension Int.Type { // expected-error {{cannot extend a metatype 'Int.Type'}}
static func main() {
}
}