]> Cypherpunks repositories - gostls13.git/commit
go/types: enforce Check path restrictions via panics
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 17 Mar 2017 15:05:53 +0000 (15:05 +0000)
committerRobert Griesemer <gri@golang.org>
Fri, 17 Mar 2017 20:32:23 +0000 (20:32 +0000)
commitb744a11a966ad3999c190fea9909ec8df0570b87
treea450a43c559d43cac85dc23c74b197688af628d4
parented00cd94f2cd01f49ee8da8b1dc0c06b66d34b2f
go/types: enforce Check path restrictions via panics

Its godoc says that path must not be empty or dot, while the existing
implementation happily accepts both.

Change-Id: I64766271c35152dc7adb21ff60eb05c52237e6b6
Reviewed-on: https://go-review.googlesource.com/38262
Reviewed-by: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
src/go/types/api.go