blob: 729299b66572f3bc4d35442d656fd1a37f3b640b [file] [log] [blame]
Robert Griesemer985390b2009-07-07 10:42:42 -07001// $G $D/$F.go && $L $F.$A || echo BUG: bug167
2
3// Copyright 2009 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
7package main
8
9func f1() {
10 type T struct { x int }
11}
12
13func f2() {
14 type T struct { x float }
15}
16
17func main() {
18 f1();
19 f2();
20}
21
22/*
231606416576: conflicting definitions for main.T·bug167
24bug167.6: type main.T·bug167 struct { x int }
25bug167.6: type main.T·bug167 struct { x float }
26*/