mirror of
				https://github.com/golang/go.git
				synced 2025-11-04 02:30:57 +00:00 
			
		
		
		
	Adding a .def suffix for DWARF info collided with the DWARF info, without the suffix, for a method named def. Change the suffix to ..def instead. Fixes #15926. Change-Id: If1bf1bcb5dff1d7f7b79f78e3f7a3bbfcd2201bb Reviewed-on: https://go-review.googlesource.com/23733 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			389 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			389 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// build
 | 
						|
 | 
						|
// Copyright 2016 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 15926: linker was adding .def to the end of symbols, causing
 | 
						|
// a name collision with a method actually named def.
 | 
						|
 | 
						|
package main
 | 
						|
 | 
						|
type S struct{}
 | 
						|
 | 
						|
func (s S) def() {}
 | 
						|
 | 
						|
var I = S.def
 | 
						|
 | 
						|
func main() {
 | 
						|
    I(S{})
 | 
						|
}
 |