]> Cypherpunks repositories - gostls13.git/commitdiff
spec: cyclic imports are illegal
authorRobert Griesemer <gri@golang.org>
Mon, 4 Mar 2013 20:59:40 +0000 (12:59 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 4 Mar 2013 20:59:40 +0000 (12:59 -0800)
Fixes #4976.

R=r
CC=golang-dev
https://golang.org/cl/7421050

doc/go_spec.html

index 0cb9f54b12408d4bf53acdce7614a6fa951cee67..83e0f582de9dcf4098c7468aa5f4641354da2475 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of March 1, 2013",
+       "Subtitle": "Version of March 4, 2013",
        "Path": "/ref/spec"
 }-->
 
@@ -5367,7 +5367,8 @@ import . "lib/math"         Sin
 <p>
 An import declaration declares a dependency relation between
 the importing and imported package.
-It is illegal for a package to import itself or to import a package without
+It is illegal for a package to import itself, directly or indirectly,
+or to directly import a package without
 referring to any of its exported identifiers. To import a package solely for
 its side-effects (initialization), use the <a href="#Blank_identifier">blank</a>
 identifier as explicit package name: