fork download
  1. readonly int x = true ? 1 : 0;
  2. System.Console.Write(x);
  3.  
  4. //https://pt.stackoverflow.com/q/579256/101
Compilation error #stdin compilation error #stdout 0.07s 24640KB
stdin
Standard input is empty
compilation info
Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.100

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Package source with Name: nuget.org disabled successfully.
Package source with Name: local added successfully.
/home/DKCRtC/Project/Program.cs(1,1): error CS0106: The modifier 'readonly' is not valid for this item [/home/DKCRtC/Project/Project.csproj]



/home/DKCRtC/Project/Program.cs(1,1): error CS0106: The modifier 'readonly' is not valid for this item [/home/DKCRtC/Project/Project.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:02.35
stdout
Standard output is empty