828ebb7fb135aa8b5a82098178052593245c623d
[mono.git] / mcs / errors / cs0201-8.cs
1 // CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
2 // Line: 11
3 // Compiler options: -langversion:future
4
5 using System;
6 using System.Threading.Tasks;
7
8 class C
9 {
10         async Task<int> Test ()
11         {
12                 Func<int> r = await Task.Factory.StartNew (() => () => 1);
13         }
14 }