blob: d06108ec99e780cfb1fab9894ef712d53fe239b5 [file] [log] [blame]
// RUN: %target-swift-frontend -typecheck -verify %s
enum Foo: Int, RawRepresentable { case A }
enum Bar: Int { case A }
extension Bar: RawRepresentable {}
enum Bas: Int { case A }
// expected-note@+1{{'Bas' declares conformance to protocol 'RawRepresentable' here}}
extension Bas: RawRepresentable {}
// expected-error@+1{{redundant conformance of 'Bas' to protocol 'RawRepresentable'}}
extension Bas: RawRepresentable {}