Merge pull request #901 from Blewzman/FixAggregateExceptionGetBaseException
[mono.git] / mcs / tests / test-async-13.cs
index ea7fd528df15dfb3db2fb69a6ec14748ea40bda7..9f8cccac0700e535ade3411b92766ae7c006c939 100644 (file)
@@ -678,6 +678,12 @@ class Tester : Base
                return a.Length == 13;
        }
        
+       async Task<bool> NewArrayInitTest_7 ()
+       {
+               var res = new [] { "a", new [] { "1", await Task.FromResult ("2") } [1], "b" };
+               return res [1] == "2";
+       }
+
        async Task<bool> PropertyTest_1 ()
        {
                PropertyInt = await Task.Factory.StartNew (() => 6);