c#7 ?

edited April 2
Release notes say that c# 7 is fully supported. The following snippet works in VS2017 but does not work in LinqPad5:
class Test
{
(string, string, string) MyTest(long id)
{
return ("a", "b", "c"); // tuple literal
}
}
LinqPad complains:
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.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!