]> Cypherpunks repositories - gostls13.git/commit
go/types: fix panic when using multiple type arguments
authorRob Findley <rfindley@google.com>
Mon, 19 Apr 2021 23:10:09 +0000 (19:10 -0400)
committerRobert Findley <rfindley@google.com>
Tue, 20 Apr 2021 00:14:27 +0000 (00:14 +0000)
commit9f87943424df86e501175e10e5e3b8b00dfd03d7
treebbe151ed0b53f63fead0a1878fe280f1664ad394
parent3711ea0b5d1bc381bda02ec3fe16369ed997eda6
go/types: fix panic when using multiple type arguments

Fix a panic caused by using type arguments without first unpacking.

This was noticed in the review of CL 300998, but unfortunately not yet
fixed.

Fixes #45635

Change-Id: I8ab1720f3e27a6002bc925f0eea943ec6f778341
Reviewed-on: https://go-review.googlesource.com/c/go/+/311669
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/go/types/expr.go
src/go/types/fixedbugs/issue45635.go2 [new file with mode: 0644]