You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: struct initialization in "if" doesn't compile #38036
changed the title [-]cmd/compile: struct initialization in if doesn't compile[/-][+]cmd/compile: struct initialization in "if" doesn't compile[/+]on Mar 23, 2020
Activity
[-]cmd/compile: struct initialization in if doesn't compile[/-][+]cmd/compile: struct initialization in "if" doesn't compile[/+]ianlancetaylor commentedon Mar 23, 2020
This is expected and documented. Search for "ambiguity" in https://golang.org/ref/spec#Composite_literals.