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
It's because the syntax for method inside interfaces is ambiguous when you allow it at the top with
other Go constructs.
For example how should we parse $FOO(...)? is it a method call or a method definition in an interface.
Right now you can disambiguate by putting the 'func' keyword before as in: https://semgrep.dev/s/Oen2
aryx
added a commit
to semgrep/pfff
that referenced
this issue
Oct 29, 2021
Describe the bug
Could not match function definition in interface.
To Reproduce
https://semgrep.dev/s/Dznd
Expected behavior
Function is matched.
Screenshots
If applicable, add screenshots to help explain your problem.
What is the priority of the bug to you?
Environment
If not using semgrep.dev: are you running off docker, an official binary, a local build?
The text was updated successfully, but these errors were encountered: