Compiler crash when a macro defines a function in a protocol containing an associatedType #78189
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
I'm trying to use a macro to define a family of functions on a protocol, but the compiler is crashing. It appears that the presence of an associated type is the culprit.
I reduced the example as much as I could and made it available at https://github.com/DavidSkrundz/MacroICE/tree/declare_func_in_protocol (also pasted below)
Reproduction
Library Target:
Macro Target:
Stack dump
Expected behavior
The compiler should not crash.
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: