mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
415 B
Swift
16 lines
415 B
Swift
// 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 {}
|