c#7 ?
Options
Release notes say that c# 7 is fully supported. The following snippet works in VS2017 but does not work in LinqPad5:
class TestLinqPad complains:
{
(string, string, string) MyTest(long id)
{
return ("a", "b", "c"); // tuple literal
}
}
CS1518: Invalid token '(' in class, struct, or interface member declaration.What am I doing wrong?
Comments
-
For C# 7 support, you need to download v5.22:
http://www.linqpad.net/download.aspx#beta
This build is currently in release candidate phase and is likely to RTM this week. -
Right, thank you. Yes I now noticed that it's working in beta, but the fact that the release notes for the Release said "full support" confused me. Thank you for getting back to me.