[SR-7971] Swift 4.2 beta | @objc protocol conformance check can incorrectly fail #50506
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.2
Additional Detail from JIRA
md5: 9a12a9cce4ad3b1943e9e9d3a9f31fc3
duplicates:
Issue Description:
Overview
In the Swift 4.2 version shipped with Xcode 10 beta 1, checking @objc protocol conformance doesn't work in certain circumstances:
The protocol conformance is declared in an extension
The conforming class contains any of the following types
Date
Data
URL
Details
Here's an example with a test case, given the following protocols and classes:
The following test results are obtained:
The text was updated successfully, but these errors were encountered: