Explorar el Código

Fix more argument checking for Task<T>

Jérémie Laval hace 14 años
padre
commit
e1ec7da0c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      mcs/class/corlib/System.Threading.Tasks/Task_T.cs

+ 1 - 1
mcs/class/corlib/System.Threading.Tasks/Task_T.cs

@@ -128,7 +128,7 @@ namespace System.Threading.Tasks
 		               CancellationToken cancellationToken,
 		               CancellationToken cancellationToken,
 		               TaskCreationOptions creationOptions,
 		               TaskCreationOptions creationOptions,
 		               Task parent)
 		               Task parent)
-			: base (null, state, cancellationToken, creationOptions, parent)
+			: base (emptyAction, state, cancellationToken, creationOptions, parent)
 		{
 		{
 			this.function = function;
 			this.function = function;
 			this.state = state;
 			this.state = state;