Repository navigation
Commit 044dc0f
committed
xaml: XAML105 requires 2+ distinct scopes (no same-scope dup-key FP)
A ResourceDictionary that declares the same x:Key twice directly (or twice
inside one inline merged dictionary) is a duplicate-key error within a single
scope — runtime-invalid, but a different problem from XAML105's order-dependent
merge shadowing. The old check fired on any key with 2+ occurrences, so two
primary entries sharing a key were mislabeled as [primary, primary] shadowing.
Collisions now require the key to span 2+ DISTINCT scopes (primary vs merged,
or two different merged dicts). Added a selftest: two same-key primary entries
plus a non-colliding merged dict must not emit XAML105.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015zoG4YNCUf7RA5r8GAXMmb1 parent b351ea4 commit 044dc0f
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
434 | | - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
435 | 438 | | |
436 | 439 | | |
437 | 440 | | |
| |||
1014 | 1017 | | |
1015 | 1018 | | |
1016 | 1019 | | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
1017 | 1033 | | |
1018 | 1034 | | |
1019 | 1035 | | |
| |||
0 commit comments