diff options
author | Marek Safar <marek.safar@gmail.com> | 2013-07-12 17:13:42 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2013-07-12 17:13:42 +0400 |
commit | 035214bee18bd9a82e4b2117c108a8bb568ee8ec (patch) | |
tree | fe706f6eb310fd14771716e9ee000cd6a3a3ceec /mcs/tests/test-async-22.cs | |
parent | 5b8a026a06d57bdda8cc186c4baefed665210732 (diff) |
Allow async for explicitly implemented interface methods. Fixes #13197
Diffstat (limited to 'mcs/tests/test-async-22.cs')
-rw-r--r-- | mcs/tests/test-async-22.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mcs/tests/test-async-22.cs b/mcs/tests/test-async-22.cs index e2a361403c7..3e0350012b9 100644 --- a/mcs/tests/test-async-22.cs +++ b/mcs/tests/test-async-22.cs @@ -2,8 +2,7 @@ using System; using System.Threading.Tasks; // contextual async, parser tests - -class A +class A : Iasync { async Task<int> async () { @@ -21,6 +20,10 @@ class A var res = (int) await async (); var res2 = (Int32) await async (); } + + async void Iasync.async () + { + } public static int Main () { @@ -28,6 +31,11 @@ class A } } +interface Iasync +{ + void async (); +} + class B { class async |