Permit package name hyphens in one more place
...missed one.
This commit is contained in:
parent
48677d8809
commit
98961b706a
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue