Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA0102 on discard of named tuple member #96

Open
paulmey opened this issue Apr 22, 2021 · 0 comments
Open

SA0102 on discard of named tuple member #96

paulmey opened this issue Apr 22, 2021 · 0 comments

Comments

@paulmey
Copy link

paulmey commented Apr 22, 2021

using System;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            (string output, _) = RunCommand();
            Console.WriteLine(output);
        }

        private static (string output, int statuscode) RunCommand()
        {
            return ("Hello World!", 0);
        }
    }
}

Results in:

Build started...
1>------ Build started: Project: test, Configuration: Debug Any CPU ------
1>  test -> c:\src\test\bin\Debug\test.exe
1>c:\src\test\Program.cs(9,1): warning : SA0102 : CSharp.CsParser : A syntax error has been discovered in file c:\src\test\Program.cs on line 9.
1>c:\src\test\Properties\AssemblyInfo.cs(1,1): warning : SA1633 : CSharp.Documentation : The file has no header, the header Xml is invalid, or the header is not located at the top of the file.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Using Stylecop.MSBuild 6.2.0 on .NET framework 4.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant