1 public inline constexpr nothrow const T& Min<T>(const T& left, const T& right) where T is System.Concepts.LessThanComparable
2 {
3 if (left <= right) return left;
4 return right;
5 }
6
7 public void main()
8 {
9 sbyte min = Min(3, 2);
10 if (min == 2)
11 {
12 System.Console.WriteLine("Min(3, 2) == 2");
13 }
14 else
15 {
16 System.Console.WriteLine("bug");
17 }
18 }