Browse Source

Avoid virtual dispatch by returning the most-derived concrete type available

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

+ 1 - 1
Terminal.Gui/Application.cs

@@ -1126,7 +1126,7 @@ public static partial class Application
     }
     }
 
 
     #nullable enable
     #nullable enable
-    private static View? FindDeepestTop (Toplevel start, int x, int y)
+    private static Toplevel? FindDeepestTop (Toplevel start, int x, int y)
     {
     {
         if (!start.Frame.Contains (x, y))
         if (!start.Frame.Contains (x, y))
         {
         {