Browse Source

Annotate nullability of this method's return value

Brandon Thetford 1 year ago
parent
commit
c7ed5c9867
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Terminal.Gui/Application.cs

+ 3 - 1
Terminal.Gui/Application.cs

@@ -1125,7 +1125,8 @@ public static partial class Application
         }
     }
 
-    private static View FindDeepestTop (Toplevel start, int x, int y)
+    #nullable enable
+    private static View? FindDeepestTop (Toplevel start, int x, int y)
     {
         Rectangle startFrame = start.Frame;
 
@@ -1155,6 +1156,7 @@ public static partial class Application
 
         return start;
     }
+    #nullable restore
 
     private static View FindTopFromView (View view)
     {