mirror of
https://github.com/beefytech/Beef.git
synced 2025-07-04 15:26:00 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
55
IDE/Tests/Test1/src/Stepping_Scope.bf
Normal file
55
IDE/Tests/Test1/src/Stepping_Scope.bf
Normal file
|
@ -0,0 +1,55 @@
|
|||
#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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue