mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Normally, protocol conformances are only checked for types and extensions declared in the current file. However, for protocols that can derive their conformances (like RawRepresentable), other files in the target might expect to be able to use the protocol members (like toRaw), which aren't written in the source. Force the derivation if this is the case. Also, move the /other/ set of RawRepresentable tests from test/Parse to test/Sema. <rdar://problem/15936403> Swift SVN r14162
17 lines
157 B
Swift
17 lines
157 B
Swift
enum Foo : Int {
|
|
case A = 0
|
|
}
|
|
|
|
enum Bar : UInt {
|
|
case A = 0
|
|
case B = 22
|
|
}
|
|
|
|
enum Baz : UInt {
|
|
case A = 0
|
|
}
|
|
|
|
enum Garply : String {
|
|
case A = "A"
|
|
}
|