Fixed linux/mac failure

This commit is contained in:
Tig
2024-08-05 17:49:48 -06:00
parent b6db4a327c
commit 5dd3db92cb

View File

@@ -37,11 +37,10 @@ public class NumericUpDown<T> : View where T : notnull
throw new InvalidOperationException ("T must be a numeric type that supports addition and subtraction.");
}
Increment = (dynamic)1;
// `object` is supported only for AllViewsTester
if (type != typeof (object))
{
Increment = (dynamic)1;
Value = (dynamic)0;
}