Russ Cox | 0b477ef | 2012-02-16 23:48:57 -0500 | [diff] [blame] | 1 | // run |
Rob Pike | 094ee44 | 2008-06-06 16:56:18 -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 | |
Russ Cox | 839a684 | 2009-01-20 14:40:40 -0800 | [diff] [blame] | 9 | type ( |
Russ Cox | f2b5a07 | 2011-01-19 23:09:00 -0500 | [diff] [blame] | 10 | Point struct { |
| 11 | x, y float64 |
| 12 | } |
Rob Pike | 094ee44 | 2008-06-06 16:56:18 -0700 | [diff] [blame] | 13 | Polar Point |
| 14 | ) |
| 15 | |
| 16 | func main() { |
| 17 | } |
| 18 | |
| 19 | /* |
| 20 | bug7.go:5: addtyp: renaming Point to Polar |
| 21 | main.go.c:14: error: redefinition of typedef ‘_T_2’ |
| 22 | main.go.c:13: error: previous declaration of ‘_T_2’ was here |
| 23 | main.go.c:16: error: redefinition of ‘struct _T_2’ |
| 24 | */ |