You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.
Yep, this is because we transform the source into something like func gogrep_0(gogrep_1 , gogrep_2 uint, gogrep_3 ) gogrep_4 { gogrep_5 }, and that results in an internal error when trying to re-parse this as a declaration: 1:61: expected type, found ')'.
In this particular case, the solution would probably be to make dollar expressions include a type when they are part of a field list. However, that's easier said than done; the source transformation of course happens before any parsing.
It seems impossible right now to match "a function declaration that has a parameter of type T".
This attempts to do that doesn't work:
This pattern is parsed successfully, but it doesn't behave as expected:
I also tried these variations:
Maybe there should be a special case for
$*_
inside parameter lists?The text was updated successfully, but these errors were encountered: