We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Full issue information + repro project: https://github.com/just-ero/roslyn-issues-repros/tree/main/4.14.0/007_ConvertToTopLevelStatements_PreprocessorDirectives
Roslyn: 4.14.0-3.25178.1 (1a06295)
class Program { static void Main() { #if true Console.WriteLine("true"); #else Console.WriteLine("false"); #endif } }
class Program { static void Main() { #if false Console.WriteLine("false"); #else Console.WriteLine("true"); #endif } }
Main
#if true Console.WriteLine("true"); #else Console.WriteLine("false"); #endif
and
#if false Console.WriteLine("false"); #else Console.WriteLine("true"); #endif
respectively.
#if true Console.WriteLine("true");
#if false Console.WriteLine("false"); #else Console.WriteLine("true");
The text was updated successfully, but these errors were encountered:
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Sorry, something went wrong.
No branches or pull requests
Full issue information + repro project:
https://github.com/just-ero/roslyn-issues-repros/tree/main/4.14.0/007_ConvertToTopLevelStatements_PreprocessorDirectives
Version
Roslyn: 4.14.0-3.25178.1 (1a06295)
Steps to Reproduce
Main
.Expected Behavior
and
respectively.
Actual Behavior
and
respectively.
The text was updated successfully, but these errors were encountered: