1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-27 20:18:01 +02:00
Beef/IDE/mintest/src/main3.bf

27 lines
456 B
Beef
Raw Normal View History

#pragma warning disable 168
2020-09-07 05:53:40 -07:00
//#pragma warning disable 168
using System;
using System.Diagnostics;
using System.Threading;
using System.Collections;
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
}
public static void Hey()
{
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
}