What version of Go are you using (go version)?
$ go version
go version devel +816ff44479 Tue Oct 8 16:41:02 2019 +0000 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
What did you do?
package p
type I1 = interface {
I2
}
type I2 interface {
I1
}
What did you expect to see?
Run gotype built with go1.13.x for above program print:
issue23823.go:13:6: illegal cycle in declaration of I2
issue23823.go:13:6: I2 refers to
issue23823.go:9:6: I1 refers to
issue23823.go:13:6: I2
What did you see instead?
With go1.14.x, go1.15.x and tip:
issue23823.go:13:6: illegal cycle in declaration of I2
issue23823.go:13:6: I2 refers to
issue23823.go:13:6: I2
git bisect points to 37a2290
cc @griesemer @mdempsky
What version of Go are you using (
go version)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env)?go envOutputWhat did you do?
What did you expect to see?
Run
gotypebuilt with go1.13.x for above program print:What did you see instead?
With go1.14.x, go1.15.x and tip:
git bisect points to 37a2290
cc @griesemer @mdempsky