From ff01e5cb93ab5a93ed56271272599a463a4b5322 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 16 Aug 2017 10:41:48 -0400 Subject: [PATCH] Port AsyncValueTaskMethodBuilder.Create change from coreclr --- .../Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Threading.Tasks.Extensions/src/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs b/src/System.Threading.Tasks.Extensions/src/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs index e4c40a2abb75..bd2575a26a0b 100644 --- a/src/System.Threading.Tasks.Extensions/src/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs +++ b/src/System.Threading.Tasks.Extensions/src/System/Runtime/CompilerServices/AsyncValueTaskMethodBuilder.cs @@ -25,7 +25,7 @@ public struct AsyncValueTaskMethodBuilder /// Creates an instance of the struct. /// The initialized instance. public static AsyncValueTaskMethodBuilder Create() => - new AsyncValueTaskMethodBuilder() { _methodBuilder = AsyncTaskMethodBuilder.Create() }; + default(AsyncValueTaskMethodBuilder); /// Begins running the builder with the associated state machine. /// The type of the state machine.