Skip to content

cmd/compile: does not compile correct program #13273

Description

@dvyukov
package n
func n() {
    <-chan int((chan int)(nil))
}
$ go tool compile -oldparser /tmp/test.go
$ go tool compile /tmp/test.go
/tmp/test.go:3: syntax error: unexpected ( at end of statement

go version devel +25a28da Sun Nov 15 23:41:28 2015 +0000 linux/amd64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions