Skip to content
#

r2c

Here are 6 public repositories matching this topic...

Language: All
Filter by language
semgrep
bstpierre
bstpierre commented Mar 26, 2022

Describe the bug
Patterns for Go multiple return values match more strictly than the argument list, which is confusing.

To Reproduce
Try to match any Go function that has error in the return type list. All six of these functions should match:

func a(b int) error { return nil }
func b() (int, error) { return 0, nil }
func c() (error, int) { return nil, 0 }
func d() (float6
good first issue priority:low user:external lang:golang

Improve this page

Add a description, image, and links to the r2c topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the r2c topic, visit your repo's landing page and select "manage topics."

Learn more