Fix up ConfiguredValueTaskAwaitable signature for new compiler checks (#15092)
authorJan Kotas <jkotas@microsoft.com>
Sat, 18 Nov 2017 09:03:29 +0000 (01:03 -0800)
committerGitHub <noreply@github.com>
Sat, 18 Nov 2017 09:03:29 +0000 (01:03 -0800)
src/mscorlib/shared/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs

index ae3ec34..4e8ce69 100644 (file)
@@ -74,7 +74,7 @@ namespace System.Runtime.CompilerServices
 
             /// <summary>Gets the task underlying the incomplete <see cref="_value"/>.</summary>
             /// <remarks>This method is used when awaiting and IsCompleted returned false; thus we expect the value task to be wrapping a non-null task.</remarks>
-            (Task, bool) IConfiguredValueTaskAwaiter.GetTask() => (_value.AsTaskExpectNonNull(), _continueOnCapturedContext);
+            (Task task, bool continueOnCapturedContext) IConfiguredValueTaskAwaiter.GetTask() => (_value.AsTaskExpectNonNull(), _continueOnCapturedContext);
         }
     }