Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: "cannot use _ as value" errors initializing blank fields in struct literal #38905
Following up on #38690, this code is valid and accepted by go/types, but cmd/compile fails to accept it:
These are expressions where
Note that only one error message is printed, but that's because we hit a Fatalf after the error (use
Fails to compile in Go 1.14 too, so not a regression.
Slightly better test case that provides better coverage of splitnode: