Robert Griesemer

Results 89 comments of Robert Griesemer

Putting on hold because we also don't support calling the function in the generic code.

Fixing this will require additional position information in the `go/ast.ArrayType` node (position of the `]`, trivial but requires API change) or better "guessing" of the position of "]" based on...

Hm. We're treating the receiver declaration like any other parameter list (including type parameter lists) for simplicity. I suppose [we could say](https://tip.golang.org/ref/spec#Declarations_and_scope): > The scope of an identifier denoting a...

@go101 The suggestion for the new scope rule [I gave](https://github.com/golang/go/issues/51503#issuecomment-1059822040) seems good enough: the scope of ordinary parameters (including the receiver) is the function body and type parameters are also...

The corresponding proposal has been accepted. This issue now tracks the implementation.