[SR-7634] EXC_BAD_ACCESS when using a Protocol which has a Constraint on it's definition #50175
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
OS X 10.13.4
XCode 9.3 (9E145)
Additional Detail from JIRA
md5: c2650d576005727d191e3766798dc932
duplicates:
Issue Description:
I'm trying to constrain a protocol to instances of a certain class (or it's subclasses). The compiler doesn't complain about the following code (and, seems to restrict the protocol to the specified class)
However, running the code causes a crash.
Moving the constraint to the protocol extension seems to work
The text was updated successfully, but these errors were encountered: