diff --git a/src/libraries/System.Linq.Expressions/tests/MemberInit/BindTests.cs b/src/libraries/System.Linq.Expressions/tests/MemberInit/BindTests.cs index 00267bcbc8ba8..4a1111eb5ad5c 100644 --- a/src/libraries/System.Linq.Expressions/tests/MemberInit/BindTests.cs +++ b/src/libraries/System.Linq.Expressions/tests/MemberInit/BindTests.cs @@ -223,21 +223,6 @@ public void StaticField(bool useInterpreter) Assert.Equal("ABC", PropertyAndFields.StaticStringField); } - [Theory, ClassData(typeof(CompilationTypes))] - public void StaticReadonlyField(bool useInterpreter) - { - MemberInfo member = typeof(PropertyAndFields).GetMember(nameof(PropertyAndFields.StaticReadonlyStringField))[0]; - Expression> assignToReadonly = Expression.Lambda>( - Expression.MemberInit( - Expression.New(typeof(PropertyAndFields)), - Expression.Bind(member, Expression.Constant("ABC" + useInterpreter)) - ) - ); - Func func = assignToReadonly.Compile(useInterpreter); - func(); - Assert.Equal("ABC" + useInterpreter, PropertyAndFields.StaticReadonlyStringField); - } - [Theory, ClassData(typeof(CompilationTypes))] public void StaticProperty(bool useInterpreter) {