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
fn $FUNC($$$ARGS) { $$$ } does not have a return type. So it does not match the fn read(name: String) -> Result<Vc<Option<String>>> because the latter has a return type. This is expected.
However, the above YAML still does not match async function. This is also expected. Because async is an AST node function_modifiers, the pattern query does not specify the keyword.
See the AST dump
This is the work around to avoid matching return type or async modifiers
⏯ Playground Link
Playground link with relevant code
💻 Code
Code:
Pattern:
or
pattern = fn $FUNC($$$ARGS) { $$$ }
in the playground🙁 Actual behavior
It didn't match any function.
🙂 Expected behavior
It should match all functions
The text was updated successfully, but these errors were encountered: