You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program correctly reports an initialization cycle:
http://play.golang.org/p/xdFddyF8P0
Adding an interface type to line 7 (but leaving everything else unchanged) does not
report a cycle anymore:
http://play.golang.org/p/g61QvUmF2O
The spec is vague/incomplete with respect to cycles involving methods, but if a cycle
can be detected in the first case, it should be detectable in the 2nd case. The program
is self-contained and erroneous.
gc has the same bug (issue #6683).
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: