using System;
using System.Linq;
public class Test
{
static int getStuff(){
System.Console.WriteLine("called");
return 2;
}
public static void Main()
{
if ((let thing = getStuff()
from option in new int[] {1, 2, 3}
where option == thing
select option).Any())
System.Console.WriteLine("option");
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uTGlucTsKCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXN0YXRpYyBpbnQgZ2V0U3R1ZmYoKXsKCQlTeXN0ZW0uQ29uc29sZS5Xcml0ZUxpbmUoImNhbGxlZCIpOwoJCXJldHVybiAyOwoJfQoJCglwdWJsaWMgc3RhdGljIHZvaWQgTWFpbigpCgl7CgkJaWYgKChsZXQgdGhpbmcgPSBnZXRTdHVmZigpCgkJCWZyb20gb3B0aW9uIGluIG5ldyBpbnRbXSB7MSwgMiwgM30KCQkJCQoJCQkJd2hlcmUgb3B0aW9uID09IHRoaW5nCgkJCQlzZWxlY3Qgb3B0aW9uKS5BbnkoKSkKCQkJU3lzdGVtLkNvbnNvbGUuV3JpdGVMaW5lKCJvcHRpb24iKTsKCX0KfQ==
prog.cs(13,11): error CS1525: Unexpected symbol `thing'
prog.cs(14,3): error CS1525: Unexpected symbol `from'
prog.cs(17,17): error CS1525: Unexpected symbol `)', expecting `;' or `}'
prog.cs(17,24): error CS1525: Unexpected symbol `)', expecting `;' or `}'
Compilation failed: 4 error(s), 0 warnings