blob: eceec8499de755093479e025cf455b472f94d943 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
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 {}