From 4be38dde841ea5581661ca327e11b4199b69a460 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 4 Mar 2013 12:59:40 -0800 Subject: [PATCH] spec: cyclic imports are illegal Fixes #4976. R=r CC=golang-dev https://golang.org/cl/7421050 --- doc/go_spec.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: -- 2.48.1