Files
swift-mirror/test/Sema/Inputs/enum_multi_file_helper.swift
Jordan Rose 1aab6d4687 Derive protocol conformances for types declared in other files in the target.
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
2014-02-20 19:47:42 +00:00

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"
}