Actually set up the 'rawValue' argument label on derived enum initializers.

Somehow, protocol conformance checking didn't actually care that this was missing...

Swift SVN r21898
This commit is contained in:
Joe Groff
2014-09-12 01:29:51 +00:00
parent 213f59e546
commit 8338e69c86
11 changed files with 42 additions and 16 deletions

View File

@@ -81,7 +81,7 @@ public func < (lhs: Bit, rhs: Bit) -> Bool {
extension Bit : IntegerArithmeticType {
static func _withOverflow(v: (Int, overflow: Bool)) -> (Bit, overflow: Bool) {
return (Bit(v.0)!, v.overflow)
return (Bit(rawValue: v.0)!, v.overflow)
}
public static func addWithOverflow(