Commit bf6d6c0
committed
Add regression test for issue #1091: interface DefaultMember Value access
When an interface or type has [DefaultMember("Value")] and VB code explicitly
accesses .Value, the converter was incorrectly stripping the member access,
producing `p` instead of `p.Value`.
The fix (already in commit 924785a) adds `&& p.Parameters.Any()` to the
`isDefaultProperty` check in ConvertMemberAccessExpressionAsync. This ensures
only truly indexed (parameterized) default properties are stripped, while
parameterless default members like Value retain their explicit access.
This commit adds a regression test covering the exact scenario from issue #1091:
an interface with <DefaultMember("Value")> where VB code explicitly reads and
writes the .Value property.
https://claude.ai/code/session_01AkwUvu3XuCdj3D4axoX4UX1 parent 11a413a commit bf6d6c0
1 file changed
+39
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
52 | 91 | | |
53 | 92 | | |
54 | 93 | | |
0 commit comments