2012-02-21 16:19:59 -07:00
|
|
|
// build
|
2009-07-07 11:42:42 -06:00
|
|
|
|
|
|
|
// Copyright 2009 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.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
func f1() {
|
2011-01-19 21:09:00 -07:00
|
|
|
type T struct {
|
|
|
|
x int
|
|
|
|
}
|
2009-07-07 11:42:42 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func f2() {
|
2011-01-19 21:09:00 -07:00
|
|
|
type T struct {
|
|
|
|
x float64
|
|
|
|
}
|
2009-07-07 11:42:42 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func main() {
|
2011-01-19 21:09:00 -07:00
|
|
|
f1()
|
|
|
|
f2()
|
2009-07-07 11:42:42 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
1606416576: conflicting definitions for main.T·bug167
|
|
|
|
bug167.6: type main.T·bug167 struct { x int }
|
2011-01-19 21:09:00 -07:00
|
|
|
bug167.6: type main.T·bug167 struct { x float64 }
|
2009-07-07 11:42:42 -06:00
|
|
|
*/
|