[SR-6760] Compiler crash when using conditional conformance with generic func #49309
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
conditional conformances
Feature → protocol → conformances: conditional conformances
crash
Bug: A crash, i.e., an abnormal termination of software
Attachment: Download
Environment
Apple Swift version 4.1-dev (LLVM b623e863a9, Clang 27a368e018, Swift edecd95)
Target: x86_64-apple-darwin17.3.0
Additional Detail from JIRA
md5: 2f8ebaa20aeb226faabfe7a7d718d201
Issue Description:
The following code crashes the Swift 4.1 compiler:
It seems to me as if the generic method in the protocol causes some problems. The compiler crashes while type-checking the extension on Dictionary. When I don't have a generic func in the protocol, the generic extension works fine. Also, the implementation of the func seems irrelevant.
Output:
The text was updated successfully, but these errors were encountered: