Merge pull request #1948 from akoeplinger/fix-httplistener-test-race
[mono.git] / mcs / tests / test-async-22.cs
index 3e0350012b945ee2c7bd643e1288139012fe8b19..e715d1a4598cd3d4fe5d26a5e90624e99bd2f113 100644 (file)
@@ -60,6 +60,15 @@ class C
        }
 }
 
+class D
+{
+       enum E {}
+
+       async Task M ()
+       {
+       }
+}
+
 class async
 {
        async (async arg)
@@ -156,4 +165,22 @@ namespace AwaitNS
                        };
                }
        }
+
+       class MemberAccess
+       {
+               static void M ()
+               {
+                       var await = new string[0];
+                       var l = await.Length;                   
+               }
+       }
+
+       class TypeChecks
+       {
+               static void M (object await)
+               {
+                       var b = await is Exception; 
+                       var c = await as Exception;
+               }
+       }
 }