Skip to content

Enable type narrowing on assignment of non-variable symbols - #14989

Merged
Jonny Eskew (jeskew) merged 1 commit into
mainfrom
jeskew/14869
Sep 6, 2024
Merged

Jonny Eskew (jeskew) merged 1 commit into
mainfrom
jeskew/14869

Conversation

@jeskew

@jeskew Jonny Eskew (jeskew) commented Sep 5, 2024 •

Copy link
Copy Markdown
Contributor

Resolves #14869

This PR updates the TypeValidator to perform narrowing even when the assigned expression is a symbolic reference to something other than a variable.

Microsoft Reviewers: Open in CodeFlow

@github-actions

github-actions Bot commented Sep 5, 2024 •

Copy link
Copy Markdown
Contributor

Test this change out locally with the following install scripts (Action run 10743626403)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 10743626403
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 10743626403"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 10743626403
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 10743626403"

@github-actions

github-actions Bot commented Sep 5, 2024

Copy link
Copy Markdown
Contributor

Dotnet Test Results

    72 files   -     36      72 suites   - 36   23m 55s ⏱️ - 9m 57s
11 043 tests  -     19  11 043 ✅  -     19  0 💤 ±0  0 ❌ ±0 
25 862 runs   - 12 924  25 862 ✅  - 12 924  0 💤 ±0  0 ❌ ±0 

Results for commit c9b1d01. ± Comparison against base commit aaaa0a0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ResourceDefinedTypes - Emit warning for type mismatches

2 participants