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 10package main 11 12type S struct{} 13 14func (s S) def() {} 15 16var I = S.def 17 18func main() { 19 I(S{}) 20} 21