@@ -30,6 +30,7 @@ class InvocationOnDynamicType
3030 {
3131 [ ExpectedWarning ( "IL2026" , "Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember" ) ]
3232 [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
33+ [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
3334 static void DynamicArgument ( )
3435 {
3536 dynamic dynamicObject = "Some string" ;
@@ -49,6 +50,7 @@ static void MethodWithDynamicParameterDoNothing (dynamic arg)
4950
5051 [ ExpectedWarning ( "IL2026" , "Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember" ) ]
5152 [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
53+ [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
5254 static void MethodWithDynamicParameter ( dynamic arg )
5355 {
5456 arg . MethodWithDynamicParameter ( arg ) ;
@@ -82,13 +84,15 @@ class DynamicMemberReference
8284 {
8385 [ ExpectedWarning ( "IL2026" , "Microsoft.CSharp.RuntimeBinder.Binder.GetMember" ) ]
8486 [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
87+ [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
8588 static void Read ( dynamic d )
8689 {
8790 var x = d . Member ;
8891 }
8992
9093 [ ExpectedWarning ( "IL2026" , "Microsoft.CSharp.RuntimeBinder.Binder.SetMember" ) ]
9194 [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
95+ [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
9296 static void Write ( dynamic d )
9397 {
9498 d . Member = 0 ;
@@ -105,13 +109,15 @@ class DynamicIndexerAccess
105109 {
106110 [ ExpectedWarning ( "IL2026" , "Microsoft.CSharp.RuntimeBinder.Binder.GetIndex" ) ]
107111 [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
112+ [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
108113 static void Read ( dynamic d )
109114 {
110115 var x = d [ 0 ] ;
111116 }
112117
113118 [ ExpectedWarning ( "IL2026" , "Microsoft.CSharp.RuntimeBinder.Binder.SetIndex" ) ]
114119 [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
120+ [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
115121 static void Write ( dynamic d )
116122 {
117123 d [ 0 ] = 0 ;
@@ -129,6 +135,7 @@ class DynamicInRequiresUnreferencedCodeClass
129135 [ RequiresUnreferencedCode ( "message" ) ]
130136 class ClassWithRequires
131137 {
138+ [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
132139 [ ExpectedWarning ( "IL3050" , Tool . NativeAot , "https://github.com/dotnet/runtime/issues/94427" ) ]
133140 public static void MethodWithDynamicArg ( dynamic arg )
134141 {
0 commit comments