blob: 8fba571d3c5f0a318f3b1ecb97fd9b96f4251297 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// CS0201: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
// Line: 11
using System;
using System.Threading.Tasks;
class C
{
async Task<int> Test ()
{
Func<int> r = await Task.Factory.StartNew (() => () => 1);
}
}
|