Merge pull request #1691 from esdrubal/exitevent
[mono.git] / mcs / errors / cs0815-8.cs
1 // CS0815: An implicitly typed local variable declaration cannot be initialized with `anonymous method'
2 // Line: 11
3
4 using System;
5 using System.Threading.Tasks;
6
7 class X
8 {
9         public static void Main ()
10         {
11                 Task.Run(async () => { var a = async () => { }; Console.WriteLine(a); });
12         }
13 }