Nested declaration macro diagnoses generic as incorrect type #69454
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
I encountered very bizarre behavior when trying to create a declaration macro that takes a generic closure. The closure seems to be incorrectly identifying one generic type as another.
Steps to reproduce
Download the following project and run the DeclarationMacroBugClient target:
DeclarationMacroBug.zip
You'll see that the closure is evaluating a parameter as if it is the wrong generic type.
Source
Macro plugin source:
Library source:
Client source:
Expected behavior
I expect
action
to be treated as anAction
, notState
.Environment
The text was updated successfully, but these errors were encountered: