Rémy Oudompheng | fc3797a | 2012-02-22 00:19:59 +0100 | [diff] [blame] | 1 | // build |
Robert Griesemer | 985390b | 2009-07-07 10:42:42 -0700 | [diff] [blame] | 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 | |
| 7 | package main |
| 8 | |
| 9 | func f1() { |
Russ Cox | f2b5a07 | 2011-01-19 23:09:00 -0500 | [diff] [blame] | 10 | type T struct { |
| 11 | x int |
| 12 | } |
Robert Griesemer | 985390b | 2009-07-07 10:42:42 -0700 | [diff] [blame] | 13 | } |
| 14 | |
| 15 | func f2() { |
Russ Cox | f2b5a07 | 2011-01-19 23:09:00 -0500 | [diff] [blame] | 16 | type T struct { |
| 17 | x float64 |
| 18 | } |
Robert Griesemer | 985390b | 2009-07-07 10:42:42 -0700 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | func main() { |
Russ Cox | f2b5a07 | 2011-01-19 23:09:00 -0500 | [diff] [blame] | 22 | f1() |
| 23 | f2() |
Robert Griesemer | 985390b | 2009-07-07 10:42:42 -0700 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | /* |
| 27 | 1606416576: conflicting definitions for main.T·bug167 |
| 28 | bug167.6: type main.T·bug167 struct { x int } |
Russ Cox | f2b5a07 | 2011-01-19 23:09:00 -0500 | [diff] [blame] | 29 | bug167.6: type main.T·bug167 struct { x float64 } |
Robert Griesemer | 985390b | 2009-07-07 10:42:42 -0700 | [diff] [blame] | 30 | */ |