Skip to content

Commit 8ce2fed

Browse files
cuonglmgopherbot
authored andcommitted
cmd/compile: add test case for using Alias types
CL 579935 disabled usage of Alias types in the compiler, and tracks the problem with issue #66873. The test case in #65893 passes now with the current tip. This CL adds a test case to ensure there is no regression once Alias types are enabled for the compiler. Updates #66873 Fixes #65893 Change-Id: I51b51bb13ca59549bc5925dd95f73da40465556d Reviewed-on: https://go-review.googlesource.com/c/go/+/568455 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Robert Griesemer <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Cuong Manh Le <[email protected]>
1 parent 63a0a90 commit 8ce2fed

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/fixedbugs/issue65893.go

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// compile
2+
3+
// Copyright 2024 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+
type (
10+
s = struct{ f func(s1) }
11+
s1 = struct{ i I }
12+
)
13+
14+
type I interface {
15+
S() *s
16+
}

0 commit comments

Comments
 (0)