Skip to content

Commit f2c6aa1

Browse files
committed
Improve preprocessor directive
1 parent 6b6b1ed commit f2c6aa1

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
@@ -375,11 +375,12 @@ public static void StructInitializerWithinObjectInitializer()
375375
});
376376
}
377377

378-
#if true
378+
#if !NET40 && ROSLYN
379379
public static ReadOnlySpan<byte> ReadOnlySpanInitializer_ByteArray()
380380
{
381381
return new byte[] { 1, 2, 3 };
382382
}
383+
383384
public static ReadOnlySpan<int> ReadOnlySpanInitializer_Int32Array()
384385
{
385386
return new int[] { 1, 2, 3 };

0 commit comments

Comments
 (0)