Skip to content

Commit 4b97676

Browse files
CopilotakoeplingerMichalStrehovsky
authored
Fix issue with dynamic runtime binding in Microsoft.CSharp test (#117705)
Fix dynamic binding issue in Microsoft.CSharp tests by casting dynamic parameter to object Co-authored-by: MichalStrehovsky <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: akoeplinger <[email protected]> Co-authored-by: MichalStrehovsky <[email protected]>
1 parent 3c6dfd7 commit 4b97676

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

src/libraries/Microsoft.CSharp/tests/AssignmentTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void AddAssignment(dynamic lhs, dynamic rhs, object expected)
8383
{
8484
lhs += rhs;
8585
Assert.Equal(expected, lhs);
86-
Assert.IsType(expected.GetType(), lhs);
86+
Assert.IsType(expected.GetType(), (object)lhs);
8787
}
8888

8989
[Theory, MemberData(nameof(PropertyAdditions))]

src/libraries/Microsoft.CSharp/tests/ILLink.Descriptors.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/libraries/Microsoft.CSharp/tests/Microsoft.CSharp.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<DebuggerSupport Condition="'$(DebuggerSupport)' == '' and ('$(TargetOS)' == 'browser' or '$(TargetOS)' == 'wasi')">true</DebuggerSupport>
1212
</PropertyGroup>
1313
<ItemGroup>
14-
<TrimmerRootDescriptor Include="$(MSBuildThisFileDirectory)ILLink.Descriptors.xml" />
1514
<Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\IsExternalInit.cs" Link="Common\System\Runtime\CompilerServices\IsExternalInit.cs" />
1615
<Compile Include="AccessTests.cs" />
1716
<Compile Include="ArrayHandling.cs" />

0 commit comments

Comments
 (0)