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>2012-03-15 17:01:54 +0400
committerMarek Safar <marek.safar@gmail.com>2012-03-15 17:02:57 +0400
commit86be85336efda9440cbaf74d5877e574a004fd41 (patch)
tree0299b4a6ac4eff81858f88c0e55bfd1d8693322b /mcs/tests/test-async-21.cs
parent3742361e5827f9a2feb0bb3f740e2bce20c27507 (diff)
Update async codegen to require INotifyCompletion implementation
Diffstat (limited to 'mcs/tests/test-async-21.cs')
-rw-r--r--mcs/tests/test-async-21.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/mcs/tests/test-async-21.cs b/mcs/tests/test-async-21.cs
index b45c43b47e9..dc409b145d1 100644
--- a/mcs/tests/test-async-21.cs
+++ b/mcs/tests/test-async-21.cs
@@ -1,7 +1,6 @@
-// Compiler options: -langversion:future
-
using System;
using System.Threading.Tasks;
+using System.Runtime.CompilerServices;
class S
{
@@ -11,7 +10,7 @@ class S
}
}
-class A
+class A : INotifyCompletion
{
bool IsCompleted {
get {
@@ -19,7 +18,7 @@ class A
}
}
- void OnCompleted (System.Action a)
+ void INotifyCompletion.OnCompleted (Action a)
{
a ();
}