From 75c8b74cdc67bee7c0000faf3cb6f388757f26bd Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Fri, 9 Oct 2026 11:22:07 +0200 Subject: [PATCH] Answer stability round 3: the selector hint asks bindsField --- arm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm.go b/arm.go index 8363fc9..9775e48 100644 --- a/arm.go +++ b/arm.go @@ -100,7 +100,7 @@ func (t *template) compileArm(name string, targets map[*nameBinding]nameTarget) } b := t.nameScope.lookup(a.head) if grammar.HasSelector(a.tail) { - if !grammar.IsRef(b.ref) { + if b.bindsField() { return a, fmt.Errorf("a path through name %q may not select a row; bind the row to a name of its own", a.head) } return a, fmt.Errorf("a path through name %q may not select a row; read the row without the name, {%s}, or bind it to a name of its own", a.head, grammar.JoinSegments(append([]string{b.ref}, a.tail...)))