]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: fix missing case for shape double-check function
authorDan Scales <danscales@google.com>
Wed, 1 Sep 2021 02:06:46 +0000 (19:06 -0700)
committerDan Scales <danscales@google.com>
Wed, 1 Sep 2021 02:51:18 +0000 (02:51 +0000)
commit2dd7b770defc869edfcf610b9471fc4f580c3eb2
tree889104e1f09c5825dc6fa5e9f4ba2de96e31bb79
parent62ba72b35321bd76de18aa8874b021ee02ab8a4e
cmd/compile: fix missing case for shape double-check function

Missing case types.TUNSAFEPTR in parameterizedBy().

Also realized there was the same missing case in the type substituter
(*Tsubster).Typ().

Fixes #48103

Change-Id: If71f1a6ef80932f0e2120d4c18b39a30189fd8fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/346669
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
src/cmd/compile/internal/noder/stencil.go
src/cmd/compile/internal/typecheck/subr.go
test/typeparam/issue48013.go [new file with mode: 0644]