1
0
mirror of https://github.com/golang/go synced 2024-09-24 09:20:15 -06:00
go/test/fixedbugs/bug448.dir/pkg2.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

15 lines
288 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.
// Issue 3843: inlining bug due to wrong receive operator precedence.
package pkg2
import "./pkg1"
func F() {
pkg1.Do()
}