mirror of
https://github.com/golang/go
synced 2024-11-25 06:37:58 -07:00
9be4f312bf
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>
17 lines
312 B
Go
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
|