1
0
mirror of https://github.com/golang/go synced 2024-11-27 05:11:22 -07:00
go/test/fixedbugs/issue25101.go
Robert Griesemer 9be4f312bf cmd/compile: revert internal parameter rename (from ".anonX" to "") before export
In the old binary export format, parameter names for parameter lists
which contained only types where never written, so this problem didn't
come up.

Fixes #25101.

Change-Id: Ia8b817f7f467570b05f88d584e86b6ef4acdccc6
Reviewed-on: https://go-review.googlesource.com/116376
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2018-06-05 20:22:07 +00:00

17 lines
312 B
Go

// compile
// Copyright 2018 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.
// Indexed export format must not crash when writing
// the anonymous parameter for m.
package p
var x interface {
m(int)
}
var M = x.m