mirror of
https://github.com/golang/go
synced 2024-11-06 01:46:12 -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
15 lines
288 B
Go
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()
|
|
}
|
|
|