[SR-7101] Compiler crash when implementing a protocol for an enum using generics #49649
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
type checker
Area → compiler: Semantic analysis
Environment
Linux, swift 4.1 Development Ubuntu 16.10 snapshot from 2018-02-28.
Additional Detail from JIRA
md5: 456fc4af50fe6b00c96809b349496e6c
Issue Description:
I got an assertion failure when trying to compile some code involving an extension for an enum using generics. It seems that the typealias is also necessary as I don't get any error when removing it.
The failed assertion is in include/swift/AST/Type.h "Forming a CanType out of a non-canonical type!"' failed.
Here is the output that I got:
The text was updated successfully, but these errors were encountered: