Permit package name hyphens in one more place

...missed one.
This commit is contained in:
joeduffy 2017-04-19 11:34:36 -07:00
parent 48677d8809
commit 98961b706a

View file

@ -26,7 +26,7 @@ func (b *binder) BindPackage(pkg *pack.Package) *symbols.Package {
func (b *binder) resolveBindPackage(pkg *pack.Package, pkgurl pack.PackageURL) *symbols.ResolvedPackage {
// If the package name isn't a legal identifier, say so.
if !tokens.IsQName(string(pkg.Name)) {
if !tokens.IsPackageName(string(pkg.Name)) {
b.Diag().Errorf(errors.ErrorInvalidPackageName.At(pkg.Doc))
}