Xcode-beta (7A121l): Unnecesary "Ambiguous implied conformance" error

Originator:GriotSpeak
Number:rdar://21538899 Date Originated:24-Jun-2015 07:28 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A121l)
Classification:Enhancement Reproducible:Always
 
Summary:
Explicitly conforming to two protocols which both extend a single third protocol triggers an error.

Steps to Reproduce:
open a playground and paste in the following code

        public struct MyValue : Comparable {
	    let value: Int
	}
	 
	 
	public func ==(first:MyValue, second:MyValue) -> Bool {
	    return true
	}
	 
	public func <(first:MyValue, second:MyValue) -> Bool {
	    return true
	}
	 
	extension MyValue : Hashable {
	}


Expected Results:
Successful compilation without issue.

Actual Results:
Previously described error.

Regression:
Code successfully compiled in 6.4.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!