1 // expected: "math" imported and not used
2 //
3 // A dot import binds the imported package's members in the file scope instead
4 // of binding a name, so the unused-import check has to look for the members
5 // rather than for the package name. go/types reports an unused dot import the
6 // same way it reports a named one; stage4 did not report it at all, which was
7 // the last gap in this check.
8 package main
9 10 import . "math"
11 12 func main() {
13 println(int32(1))
14 }
15