Skip to content

Commit

Permalink
disable warning about null reference on nullable disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Jun 13, 2024
1 parent ad07741 commit 58658a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sandbox/GeneratorSandbox/GeneratorSandbox.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Nullable>disable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>1701;1702;CS8321</NoWarn>
<IsPackable>false</IsPackable>
Expand Down
3 changes: 2 additions & 1 deletion sandbox/GeneratorSandbox/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public void Handle(
bool a16,
bool a17,
bool a18,
bool a19
bool a19,
string foo = null
)
{
Console.Write("ok");
Expand Down
1 change: 1 addition & 0 deletions src/ConsoleAppFramework/ConsoleAppGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ static void EmitConsoleAppTemplateSource(IncrementalGeneratorPostInitializationC
#pragma warning disable CS9074 // The 'scoped' modifier of parameter doesn't match overridden or implemented member
#pragma warning disable CA1050 // Declare types in namespaces.
#pragma warning disable CS1998
#pragma warning disable CS8625
namespace ConsoleAppFramework;
Expand Down

0 comments on commit 58658a1

Please sign in to comment.