Skip to content

Commit 62739c5

Browse files
committed
Fix up roslyn reference to newest
1 parent a5f34be commit 62739c5

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

src/tests/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<PropertyGroup>
1212
<!-- Override the compiler version with a private build that supports async2 -->
13-
<MicrosoftNetCompilersToolsetVersion>5.0.0-1.25222.4</MicrosoftNetCompilersToolsetVersion>
13+
<MicrosoftNetCompilersToolsetVersion>5.0.0-1.25259.6</MicrosoftNetCompilersToolsetVersion>
1414
</PropertyGroup>
1515

1616
<PropertyGroup>

src/tests/async/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<!-- runtime async testing in main repo NYI -->
4-
<DisableProjectBuild>true</DisableProjectBuild>
4+
<!-- <DisableProjectBuild>true</DisableProjectBuild> -->
55
</PropertyGroup>
66

77
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets, $(MSBuildThisFileDirectory)..))" />

src/tests/async/fibonacci-without-yields-config-await/fibonacci-without-yields-config-await.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static void Test()
2626
System.Console.WriteLine("allocated: " + allocated);
2727
}
2828

29-
public static async2 Task AsyncEntry()
29+
public static async Task AsyncEntry()
3030
{
3131
for (int i = 0; i < iterations; i++)
3232
{
@@ -38,7 +38,7 @@ public static async2 Task AsyncEntry()
3838
}
3939
}
4040

41-
static async2 Task<int> Fib(int i)
41+
static async Task<int> Fib(int i)
4242
{
4343
if (i <= 1)
4444
{

src/tests/async/small/small.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static void TestEntryPoint()
1515
}
1616

1717
[MethodImpl(MethodImplOptions.NoInlining)]
18-
private static async2 Task SmallType(byte arg)
18+
private static async Task SmallType(byte arg)
1919
{
2020
await Task.Yield();
2121
Assert.Equal(123, arg);

src/tests/async/struct/struct.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,21 @@ public static void TestEntryPoint()
1717
Async2().Wait();
1818
}
1919

20+
[RuntimeAsyncMethodGeneration(false)]
2021
private static async Task Async()
2122
{
2223
S s = new S(100);
2324
await s.Test();
2425
AssertEqual(100, s.Value);
2526
}
2627

28+
private static async Task Async2()
29+
{
30+
S s = new S(100);
31+
await s.Test();
32+
AssertEqual(100, s.Value);
33+
}
34+
2735
[MethodImpl(MethodImplOptions.NoInlining)]
2836
private static void AssertEqual(int expected, int val)
2937
{

0 commit comments

Comments
 (0)