1// compile
2
3// Copyright 2017 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 p
8
9type (
10	a = b
11	b struct {
12		*a
13	}
14)
15
16type (
17	c struct {
18		*d
19	}
20	d = c
21)
22
23// The compiler cannot handle these cases. Disabled for now.
24// See issue #25838.
25/*
26type (
27	e = f
28	f = g
29	g = []h
30	h i
31	i = j
32	j = e
33)
34
35type (
36	a1 struct{ *b1 }
37	b1 = c1
38	c1 struct{ *b1 }
39)
40
41type (
42	a2 struct{ b2 }
43	b2 = c2
44	c2 struct{ *b2 }
45)
46*/
47