2 using System
.Collections
.Generic
;
3 using System
.Threading
.Tasks
;
7 private IEnumerable
<string> Test (string s
)
9 Func
<Task
<string>> a
= async () => await Task
.FromResult(s
+ "a");
10 yield return a ().Result
;
13 private IEnumerable
<string> Test2 ()
16 Func
<Task
<string>> a
= async () => await Task
.FromResult(s
+ "a");
17 yield return a ().Result
;
20 public static int Main ()
24 foreach (var e
in c
.Test ("tt"))
31 foreach (var e
in c
.Test2 ())