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