Merge pull request #1948 from akoeplinger/fix-httplistener-test-race
[mono.git] / mcs / tests / test-async-22.cs
index c9824a794e22d1c803eadb0028dd5c8a42017053..e715d1a4598cd3d4fe5d26a5e90624e99bd2f113 100644 (file)
@@ -165,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;
+               }
+       }
 }