]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: refactoring mixing untyped type logic
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 18 Sep 2020 06:57:04 +0000 (13:57 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 18 Sep 2020 07:56:50 +0000 (07:56 +0000)
commit06f7e655d1764f5ad57bc14f82326c181c37901c
tree711efacbc8ccfd5430abd883b9682739022b0630
parentdf73945fd2fa0b7c168a042e87e648fdfdfc2c70
cmd/compile: refactoring mixing untyped type logic

defaultlit2 and typecheck use the same logic for getting mixing untyped
type, so move that logic to a function.

This is a followup of CL 255217.

Passes toolstash-check.

Change-Id: Ic0eadb7ed27a2f0f72e2d28fd5438500bf4c79e0
Reviewed-on: https://go-review.googlesource.com/c/go/+/255897
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/const.go
src/cmd/compile/internal/gc/typecheck.go