Browse Source

Addressed warning

Tig 1 year ago
parent
commit
dc614f5570
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Terminal.Gui/View/Layout/Dim.cs
  2. 1 1
      Terminal.Gui/View/Layout/Pos.cs

+ 1 - 1
Terminal.Gui/View/Layout/Dim.cs

@@ -730,7 +730,7 @@ public class DimFunc (Func<int> dim) : Dim
     /// <summary>
     ///     Gets the function that computes the dimension.
     /// </summary>
-    public Func<int> Func { get; } = dim;
+    public new Func<int> Func { get; } = dim;
 
     /// <inheritdoc/>
     public override int GetHashCode () { return Func.GetHashCode (); }

+ 1 - 1
Terminal.Gui/View/Layout/Pos.cs

@@ -632,7 +632,7 @@ public class PosFunc (Func<int> pos) : Pos
     /// <summary>
     ///     Gets the function that computes the position.
     /// </summary>
-    public Func<int> Func { get; } = pos;
+    public new Func<int> Func { get; } = pos;
 
     /// <inheritdoc/>
     public override bool Equals (object other) { return other is PosFunc f && f.Func () == Func (); }