1// compile
2
3// Copyright 2018 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
9// 1st test case from issue
10type F = func(E) // compiles if not type alias or moved below E struct
11type E struct {
12	f F
13}
14
15var x = E{func(E) {}}
16
17// 2nd test case from issue
18type P = *S
19type S struct {
20	p P
21}
22