Resolve conditional expression unreachable expression with unreachable flag set
[mono.git] / mcs / tests / test-async-13.cs
index 264fcb6878b4ed6ab366139d915c261233cca107..303bf8bd9887503eb4ce7da2590b556ceaa8b4eb 100644 (file)
@@ -405,10 +405,7 @@ class Tester : Base
        
        async Task<int> ConditionalTest_1 ()
        {
-               // TODO: problem with Resumable point setup when the expression never emitted
-               //bool b = true;
-               //return true ? await Task.Factory.StartNew (() => 0) : await Task.Factory.StartNew (() => 1);
-               return 0;
+               return true ? await Task.Factory.StartNew (() => 0) : await Task.Factory.StartNew (() => 1);
        }
        
        async Task<int> ConditionalTest_2 ()