[SR-6390] Let protocols inherit from class types #48940
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
Environment
Xcode 9.1 (9B55)
macOS 10.13.1 (17B48)
iMac (Retina 5K, 27-inch, Late 2015)
Additional Detail from JIRA
md5: 3d9ddb6c1aaf70e254c01f4bcb81d316
duplicates:
Issue Description:
Probably best explained through an example:
In a playground, this results in a crash. In a project with optimizations enabled, a seemingly random value is returned.
Removing where Self: BaseClass correctly returns the value.
I am not even sure if the constrained protocol is a supported feature, only learned about it a few weeks ago on Stack Overflow.
The text was updated successfully, but these errors were encountered: