Skip to content

Commit 9315d98

Browse files
ds5678siegfriedpammer
authored andcommitted
Improve preprocessor directive
1 parent 42e2bc7 commit 9315d98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ICSharpCode.Decompiler.Tests/TestCases/Correctness/InitializerTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,11 +359,12 @@ public static void StructInitializerWithinObjectInitializer()
359359
});
360360
}
361361

362-
#if true
362+
#if !NET40 && ROSLYN
363363
public static ReadOnlySpan<byte> ReadOnlySpanInitializer_ByteArray()
364364
{
365365
return new byte[] { 1, 2, 3 };
366366
}
367+
367368
public static ReadOnlySpan<int> ReadOnlySpanInitializer_Int32Array()
368369
{
369370
return new int[] { 1, 2, 3 };

0 commit comments

Comments
 (0)