Commit a119f88f authored by Alan Donovan's avatar Alan Donovan

go/importer: make For("gccgo", nil) not panic

Apparently we forgot to test this.

Fixes #15092

Change-Id: I33d4fef0f659dfbdfc1ebf8401e96610c8215592
Reviewed-on: https://go-review.googlesource.com/21860Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent 501ddf71
......@@ -31,7 +31,7 @@ func For(compiler string, lookup Lookup) types.Importer {
return make(gcimports)
case "gccgo":
if lookup == nil {
if lookup != nil {
panic("gccgo importer for custom import path lookup not yet implemented")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment