diff --git a/d2ir/compile.go b/d2ir/compile.go index b6035cb46..9b50fd16c 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -179,6 +179,8 @@ func (c *compiler) compileLink(refctx *RefContext) { // Resolve underscores for len(linkIDA) > 0 && linkIDA[0] == "_" { if len(scopeIDA) < 2 { + // IR compiler only validates bad underscore usage + // The compiler will validate if the target board actually exists c.errorf(refctx.Key.Key, "linked board not found") return }