mirror of
https://github.com/golang/go
synced 2024-11-05 16:06:10 -07:00
b6ea905ed9
The receive operator was given incorrect precedence resulting in incorrect deletion of parentheses. Fixes #3843. R=rsc CC=golang-dev, remy https://golang.org/cl/6442049
12 lines
245 B
Go
12 lines
245 B
Go
// Copyright 2012 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package pkg1
|
|
|
|
var x = make(chan interface{})
|
|
|
|
func Do() int {
|
|
return (<-x).(int)
|
|
}
|