mirror of
https://github.com/golang/go
synced 2024-11-23 17:40:03 -07:00
5c59e11f5e
I'm not sure why blank was special-cased here before, but it's wrong. Blank is a non-exported identifier, and writing it out without package-qualification can result in linker symbol collisions. Fixes #47087. Change-Id: Ie600037c8e54e3d4fdaeec21e2ca212badbd830b Reviewed-on: https://go-review.googlesource.com/c/go/+/333163 Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
20 lines
288 B
Go
20 lines
288 B
Go
// Copyright 2021 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 main
|
|
|
|
import (
|
|
"a"
|
|
"b"
|
|
)
|
|
|
|
func main() {
|
|
if a.F() == b.F() {
|
|
panic("FAIL")
|
|
}
|
|
if a.X == b.X {
|
|
panic("FAIL")
|
|
}
|
|
}
|