summaryrefslogtreecommitdiff
path: root/mcs/tests/test-async-58.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/tests/test-async-58.cs')
-rw-r--r--mcs/tests/test-async-58.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/test-async-58.cs b/mcs/tests/test-async-58.cs
new file mode 100644
index 0000000000..484746c8bc
--- /dev/null
+++ b/mcs/tests/test-async-58.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Threading.Tasks;
+
+public class A
+{
+ public int Get ()
+ {
+ return 1;
+ }
+}
+
+public class B : A
+{
+ public async Task<int> GetAsync ()
+ {
+ return base.Get ();
+ }
+
+ static void Main ()
+ {
+ new B ().GetAsync ().Wait ();
+ }
+} \ No newline at end of file