Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 6504501

Browse files
committed
Merge pull request #2023 from VSadov/fix1544
Makes static fields used by multiple tests ThreadStatic
2 parents 211499a + 21a7658 commit 6504501

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/System.Dynamic.Runtime/tests/Dynamic.Context/Conformance.dynamic.context.indexer.genclass.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public enum MyEnum
2929

3030
public class MemberClass<T>
3131
{
32+
[ThreadStatic]
3233
public static int Status;
3334
public bool? this[string p1, float p2, short[] p3]
3435
{
@@ -238,6 +239,7 @@ public class MemberClassMultipleParams<T, U, V>
238239
public class MemberClassWithClassConstraint<T>
239240
where T : class
240241
{
242+
[ThreadStatic]
241243
public static int Status;
242244
public int this[int x]
243245
{
@@ -271,6 +273,7 @@ public int this[int x]
271273
public class MemberClassWithNewConstraint<T>
272274
where T : new()
273275
{
276+
[ThreadStatic]
274277
public static int Status;
275278
public dynamic this[T t]
276279
{

src/System.Dynamic.Runtime/tests/Dynamic.Context/Conformance.dynamic.context.operator.genclass.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ public class MemberClassWithNewConstraint<T>
236236
public class MemberClassWithAnotherTypeConstraint<T, U>
237237
where T : U
238238
{
239-
public static int Status;
240239
public static implicit operator MyStruct[] (MemberClassWithAnotherTypeConstraint<T, U> p1)
241240
{
242241
return new MyStruct[]

0 commit comments

Comments
 (0)