From 98c853ea2b8f561ca8a4092c848fd15ece99c45c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 1 Dec 2025 22:08:37 +0000 Subject: [PATCH] Fix nullable warnings in examples - Added #nullable enable directive to all updated examples - All examples now build without warnings Co-authored-by: tig <585482+tig@users.noreply.github.com> --- Examples/Example/Example.cs | 3 ++- Examples/FluentExample/Program.cs | 1 + Examples/RunnableWrapperExample/Program.cs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Examples/Example/Example.cs b/Examples/Example/Example.cs index de89c45a9..f4738504d 100644 --- a/Examples/Example/Example.cs +++ b/Examples/Example/Example.cs @@ -1,4 +1,5 @@ -// A simple Terminal.Gui example in C# - using C# 9.0 Top-level statements +#nullable enable +// A simple Terminal.Gui example in C# - using C# 9.0 Top-level statements // This is a simple example application. For the full range of functionality // see the UICatalog project diff --git a/Examples/FluentExample/Program.cs b/Examples/FluentExample/Program.cs index de7d8aaa3..52184adda 100644 --- a/Examples/FluentExample/Program.cs +++ b/Examples/FluentExample/Program.cs @@ -1,3 +1,4 @@ +#nullable enable // Fluent API example demonstrating IRunnable with automatic disposal and result extraction using Terminal.Gui.App; diff --git a/Examples/RunnableWrapperExample/Program.cs b/Examples/RunnableWrapperExample/Program.cs index e0d423819..9c16a26ef 100644 --- a/Examples/RunnableWrapperExample/Program.cs +++ b/Examples/RunnableWrapperExample/Program.cs @@ -1,3 +1,4 @@ +#nullable enable // Example demonstrating how to make ANY View runnable without implementing IRunnable using Terminal.Gui.App;