diff options
author | Marek Safar <marek.safar@gmail.com> | 2012-03-01 22:17:39 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2012-03-02 20:57:08 +0400 |
commit | 5740cbe74c0869bfaa93107a87993fb8f743b96e (patch) | |
tree | 83751d756acd29e3f0e90977c3250ee0df807caa /mcs/tests/test-async-22.cs | |
parent | 445484b64996289e9f715600043d816732da7dec (diff) |
Allow await after member access cast.
Diffstat (limited to 'mcs/tests/test-async-22.cs')
-rw-r--r-- | mcs/tests/test-async-22.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mcs/tests/test-async-22.cs b/mcs/tests/test-async-22.cs index d8cd87bd359..393c76c497f 100644 --- a/mcs/tests/test-async-22.cs +++ b/mcs/tests/test-async-22.cs @@ -1,5 +1,3 @@ -// Compiler options: -langversion:future - using System; using System.Threading.Tasks; @@ -17,6 +15,12 @@ class A { throw new NotImplementedException (); } + + async void CastTest () + { + var res = (int) await async (); + var res2 = (Int32) await async (); + } public static int Main () { |