Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alixander committed Jul 20, 2023
1 parent dda7add commit 3e65527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d2ir/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (c *compiler) validateConfigs(configs *Field) {
return
}

if !ParentMap(ParentMap(configs)).Root() {
if NodeBoardKind(ParentMap(ParentMap(configs))) == "" {
c.errorf(configs.LastRef().AST(), `"%s" can only appear at root vars`, configs.Name)
return
}
Expand Down

0 comments on commit 3e65527

Please sign in to comment.