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

56 lines
609 B
Beef
Raw Normal View History

//using Squarf;
//GORB
#pragma warning disable 168
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
#region EnumA Crapsos
2019-12-25 16:38:17 -08:00
[AllowDuplicates]
enum EnumA
{
Abo = 1,
Boop = _*2,
Croop = _*2,
2019-12-25 16:38:17 -08:00
Zoop = 1
}
struct StructA
{
public int mA;
public int mB;
}
#region Blurg
2019-10-09 16:20:09 -07:00
struct Blurg
2019-09-29 07:44:39 -07:00
{
static mixin MixA(var sa2)
{
sa2.mA++;
}
static mixin MixB(mut StructA sa2)
{
sa2.mA++;
}
static void MethodA(mut StructA sa)
{
MixA!(sa);
//MixB!(mut sa);
}
2019-12-13 14:25:15 -08:00
public static int32 Hey()
2019-12-11 16:56:09 -08:00
{
StructA sa = .();
sa.mA = 123
2019-12-13 14:25:15 -08:00
return (int32)123;
2019-12-11 16:56:09 -08:00
}
}