blob: 3d9fcb9e01e0c343d5d1a5abf648b74084a5081d [file] [log] [blame]
Russ Cox0b477ef2012-02-16 23:48:57 -05001// run
Rob Pike094ee442008-06-06 16:56:18 -07002
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
Russ Cox839a6842009-01-20 14:40:40 -08009type (
Russ Coxf2b5a072011-01-19 23:09:00 -050010 Point struct {
11 x, y float64
12 }
Rob Pike094ee442008-06-06 16:56:18 -070013 Polar Point
14)
15
16func main() {
17}
18
19/*
20bug7.go:5: addtyp: renaming Point to Polar
21main.go.c:14: error: redefinition of typedef ‘_T_2’
22main.go.c:13: error: previous declaration of ‘_T_2’ was here
23main.go.c:16: error: redefinition of ‘struct _T_2’
24*/