ITADN

externalInput for parent bicepparam breaks spread operator for child bicepparam

#19954Openjbelford 创建于 2026-06-26
Needs: Triage :mag:
J
jbelfordcommented
**Bicep version** Bicep CLI version 0.44.1 (28275db947) **Describe the bug** When parent bicepparam uses `externalInput` it makes spread operator for base params throw errors in child bicepparam Error BCP338: Failed to evaluate parameter "tags": The template function 'externalInput' is not valid. Please see https://aka.ms/arm-functions for usage details. [https://aka.ms/bicep/core-diagnostics#BCP338] **To Reproduce** 1. Create main.bicep 2. Create shared.bicepparam with one param set to externalInput and another object param "B" 3. Create child.bicepparam extending share bicepparam. Extend param "B" ( `param B = { ...base.B, something: "something"}` 4. Observe compiler failure **Additional context** Add any other context about the problem here.
1 条评论