From: Robert Griesemer Date: Mon, 4 Mar 2013 20:59:40 +0000 (-0800) Subject: spec: cyclic imports are illegal X-Git-Tag: go1.1rc2~695 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4be38dde841ea5581661ca327e11b4199b69a460;p=gostls13.git spec: cyclic imports are illegal Fixes #4976. R=r CC=golang-dev https://golang.org/cl/7421050 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 0cb9f54b12..83e0f582de 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -5367,7 +5367,8 @@ import . "lib/math" Sin

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 blank identifier as explicit package name: