Reject a repeated bare token of a held name, naming the single-token spelling
Tests / vet + fmt + tests (pull_request) Successful in 53s

This commit is contained in:
2026-09-02 18:21:03 +02:00
parent 5514b42b7b
commit c5c06375d8
4 changed files with 123 additions and 68 deletions
+1 -2
View File
@@ -46,8 +46,7 @@ func linkRefs(root map[string]node) error {
t.fields[key] = target
t.refs[name] = key
}
t.compileFormat()
if err := checkNoOverlap(t.format, t.bound, t.refs); err != nil {
if err := t.compileFormat(); err != nil {
return fmt.Errorf("%s: %w", path, err)
}
return nil