Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block nested deployment resources with inner scoped evaluation and symbolic references to outer scope #11884

Prev Previous commit
Next Next commit
Remove added diagnostic builder
  • Loading branch information
jeskew committed Sep 22, 2023
commit 72cc66685209ffe1deb160020e503073f23d1608
5 changes: 0 additions & 5 deletions src/Bicep.Core/Diagnostics/DiagnosticBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2096,11 +2096,6 @@ public ErrorDiagnostic RuntimeValueNotAllowedInFunctionDeclaration(string? acces
TextSpan,
"BCP375",
"An import list item that identifies its target with a quoted string must include an 'as <alias>' clause.");

public ErrorDiagnostic ReferencedSymbolDefinedOutsideOfEvaluationContext(string symbolName) => new(
TextSpan,
"BCP376",
$"The symbol '{symbolName}' is declared in the context of the outer deployment and cannot be accessed by expressions within a nested deployment template that uses inner scoping for expression evaluation.");
}

public static DiagnosticBuilderInternal ForPosition(TextSpan span)
Expand Down
Loading