2019-09-21 10:49:35 -07:00
|
|
|
#pragma warning disable 168
|
2020-09-07 05:53:40 -07:00
|
|
|
//#pragma warning disable 168
|
2019-09-21 10:49:35 -07:00
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System.Threading;
|
2020-04-29 06:40:03 -07:00
|
|
|
using System.Collections;
|
2019-09-21 10:49:35 -07:00
|
|
|
|
2020-09-07 05:53:40 -07:00
|
|
|
struct Blurg
|
2020-05-22 06:40:06 -07:00
|
|
|
{
|
2020-09-07 05:53:40 -07:00
|
|
|
public static int MethodB<T>(T foo) where T : struct
|
2020-05-22 06:40:06 -07:00
|
|
|
{
|
2020-09-07 05:53:40 -07:00
|
|
|
return 2;
|
2020-05-22 06:40:06 -07:00
|
|
|
}
|
|
|
|
|
2020-09-07 05:53:40 -07:00
|
|
|
public static int MethodB<K, V>((K key, V value) foo) where K : var where V : var
|
2020-05-22 06:40:06 -07:00
|
|
|
{
|
2020-09-07 05:53:40 -07:00
|
|
|
return 3;
|
2020-05-22 06:40:06 -07:00
|
|
|
}
|
2020-05-04 07:15:38 -07:00
|
|
|
|
2020-04-29 06:40:03 -07:00
|
|
|
public static void Hey()
|
2020-01-06 13:49:35 -08:00
|
|
|
{
|
2020-09-07 05:53:40 -07:00
|
|
|
Debug.Assert(MethodB(11) == 2);
|
|
|
|
Debug.Assert(MethodB(("A", "B")) == 3);
|
2020-05-15 15:09:00 -07:00
|
|
|
}
|
2020-04-10 08:58:12 -07:00
|
|
|
}
|