1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 00:20:25 +02:00
Beef/IDE/Tests/Test1/src/Stepping_Scope.bf
2019-08-23 11:56:54 -07:00

55 lines
629 B
Beef

#pragma warning disable 168
namespace IDETest
{
class Stepping_Scope
{
class ClassA
{
public ~this()
{
int b = 99;
}
}
static void Test1(int inVal)
{
int a = 1;
var ca = scope ClassA();
if (inVal == 0)
{
a = 2;
return;
}
a = 3;
//Stepping_Scope_Test1_Leave
}
static void Test2(int inVal)
{
int a = 1;
if (inVal == 0)
{
var ca = scope:: ClassA();
a = 2;
return;
}
a = 3;
//Stepping_Scope_Test1_Leave
}
public static void Test()
{
//Stepping_Scope_Test_Start
Test1(0);
Test1(1);
Test2(0);
Test2(1);
}
}
}