]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: add test case for missing return
authorRobert Griesemer <gri@golang.org>
Sat, 16 Oct 2021 21:54:42 +0000 (14:54 -0700)
committerRobert Griesemer <gri@golang.org>
Sun, 17 Oct 2021 02:23:16 +0000 (02:23 +0000)
commitfa7d11a0e9c0ed469111ba5fdd86f7462a48ef49
tree3318a50cc59aa08fee7783f994b06f17ac45259d
parent640a49b8d45760b7c965fc1529dffc8e000cc846
go/types, types2: add test case for missing return

The respective issue was fixed in types2 with CL 356189;
and the problem didn't exist in go/types. This CL simply
adds the test case to the type checkers as well.

For #49003.

Change-Id: Ib50ee8bb0ad21f2916f2b79d4f77593302899a3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/356411
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/types2/testdata/fixedbugs/issue49003.go [new file with mode: 0644]
src/go/types/testdata/fixedbugs/issue49003.go [new file with mode: 0644]