blob: e5aae31d3053076eaa84cf0d0104ff67d9c4a5c7 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift -enable-objc-interop
class Base {}
@objc protocol Protocol1 : Base {}
// expected-error@-1 {{protocol 'Protocol1' is '@objc' and cannot have a superclass constraint}}
@objc protocol OtherProtocol {}
typealias Composition = OtherProtocol & Base
@objc protocol Protocol2 : Composition {}
// expected-error@-1 {{protocol 'Protocol2' is '@objc' and cannot have a superclass constraint}}