1
0
mirror of https://github.com/golang/go synced 2024-11-26 20:41:24 -07:00
go/test/fixedbugs/bug448.dir/pkg1.go
Rémy Oudompheng b6ea905ed9 cmd/gc: fix inlining bug with receive operator.
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
2012-08-01 00:45:26 +02:00

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)
}