]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types2: add a check for nil reason in assignableTo
authorRobert Findley <rfindley@google.com>
Mon, 15 Nov 2021 16:47:55 +0000 (11:47 -0500)
committerRobert Findley <rfindley@google.com>
Mon, 15 Nov 2021 19:24:28 +0000 (19:24 +0000)
commit92655582d0d3b739a1fc88c73cc49a24eb57f845
treea512687d4c3760c945f9bac475b144973696edb6
parentb6342a02ad901e015e1c4eb9f862824029efb7b7
cmd/compile/internal/types2: add a check for nil reason in assignableTo

A recent change to error message formatting was missing a nil check.

Fixes #49592

Change-Id: Ic1843e0277ba75eec0e8e41fe34b59c323d7ea31
Reviewed-on: https://go-review.googlesource.com/c/go/+/364034
Trust: Robert Findley <rfindley@google.com>
Trust: Dan Scales <danscales@google.com>
Trust: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/types2/operand.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue49592.go2 [new file with mode: 0644]
src/go/types/testdata/fixedbugs/issue49592.go2 [new file with mode: 0644]
test/fixedbugs/issue49592.go [new file with mode: 0644]