cmd/compile: conversion on case stmt error #52701
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/RHA6ouED_bP
What did you expect to see?
Compile successfully without reporting a syntax error. (Actually, this code can compile successfully by go1.11.13).
What did you see instead?
./prog.go:14:2: cannot use b (type T2) as type T1 in assignment
Go build failed.
The text was updated successfully, but these errors were encountered: