]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile/internal/types2: fix a panic in missingMethod
authorRob Findley <rfindley@google.com>
Wed, 4 Aug 2021 00:36:02 +0000 (20:36 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 4 Aug 2021 11:07:03 +0000 (11:07 +0000)
commit880ab6209e618c7dd6e47fa07e66176cd801eba1
treee90505fb2eadcb49adb84fe14d477fc2cc578dfe
parent5b51cf47dcf08d86eb1de22850ebd7d75e7a02af
[dev.typeparams] cmd/compile/internal/types2: fix a panic in missingMethod

When static == false, missingMethod incorrectly continues with a nil
Func.

Also remove some unnecessary type names from typeterm_test.go, which was
done in the go/types port.

Change-Id: I21fa637ac82b115563d3601314a470a5a43f9ae0
Reviewed-on: https://go-review.googlesource.com/c/go/+/339672
Trust: Robert Findley <rfindley@google.com>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/types2/lookup.go
src/cmd/compile/internal/types2/typeterm_test.go