Accept a name as a calc operand

This commit is contained in:
2026-10-05 00:55:13 +02:00
committed by Lillem4n
parent 3d320e029c
commit b4052f77f9
7 changed files with 114 additions and 63 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ func linkNodeRefs(scope nodeScope, root map[string]node) error {
}); err != nil {
return err
}
for _, pass := range []func(string, *template) error{linkNames, checkNameReads} {
for _, pass := range []func(string, *template) error{linkNames, checkNameReads, checkCalcNames} {
if err := scope(func(path string, m node) error {
if t, ok := m.(*template); ok {
return pass(path, t)