Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2011-09-29 17:55:21 +0400
committerMarek Safar <marek.safar@gmail.com>2011-09-29 18:41:32 +0400
commita1aed4f8af6c5eb3f39da23e27e2ce6455d25782 (patch)
treebba7a6bb1faa263b4b134d326056fcb4d45f542c /mcs/tests/test-async-25.cs
parentb0c8f634e48ce984aab7ab417a81c533692a4e32 (diff)
Fix check for ambiguous async tasks
Diffstat (limited to 'mcs/tests/test-async-25.cs')
-rw-r--r--mcs/tests/test-async-25.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/tests/test-async-25.cs b/mcs/tests/test-async-25.cs
new file mode 100644
index 00000000000..519c9bbc659
--- /dev/null
+++ b/mcs/tests/test-async-25.cs
@@ -0,0 +1,16 @@
+// Compiler options: -langversion:future
+using System;
+using System.Threading.Tasks;
+
+class Program
+{
+ static void CompilationTestOnly ()
+ {
+ var t = new Task<int> (() => 5);
+ var t2 = Task.Run (() => { return t; });
+ }
+
+ static void Main ()
+ {
+ }
+}