mirror of
https://github.com/golang/go
synced 2024-11-17 21:24:55 -07:00
1f446432dd
This is a regression from 1.6. The respective code in importimport (export.go) was not exactly replicated with the new importer. Also copied over the missing cyclic import check. Added test cases. Fixes #16133. Change-Id: I1e0a39ff1275ca62a8054874294d400ed83fb26a Reviewed-on: https://go-review.googlesource.com/24312 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org>
11 lines
104 B
Go
11 lines
104 B
Go
package p
|
|
|
|
import (
|
|
"./a1"
|
|
"./b"
|
|
)
|
|
|
|
var _ = b.T{
|
|
X: a.NewX(), // ERROR `cannot use "a1"\.NewX\(\)`
|
|
}
|