Source file test/fixedbugs/issue15926.go
1 // build 2 3 // Copyright 2016 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 // Issue 15926: linker was adding .def to the end of symbols, causing 8 // a name collision with a method actually named def. 9 10 package main 11 12 type S struct{} 13 14 func (s S) def() {} 15 16 var I = S.def 17 18 func main() { 19 I(S{}) 20 } 21