internal/types: add a test for empty string import path

Follow-up on comment in CL 427154.

Change-Id: Ib44a8e9b9129d68b794f91788c9b8c971d6c5436
Reviewed-on: https://go-review.googlesource.com/c/go/+/427774
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
This commit is contained in:
Robert Griesemer 2022-09-01 18:47:57 -07:00 committed by Gopher Robot
parent 57ade1fd0b
commit ccab2fbc30

View file

@ -8,6 +8,7 @@
package p
import ; // ERROR missing import path
import "" // ERROR invalid import path \(empty string\)
import
var /* ERROR missing import path */ _ int
import .; // ERROR missing import path