mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 00:50:25 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
32
IDE/Tests/Test1/src/bugs/Bug001.bf
Normal file
32
IDE/Tests/Test1/src/bugs/Bug001.bf
Normal file
|
@ -0,0 +1,32 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
|
||||
class Bug001
|
||||
{
|
||||
class ClassA
|
||||
{
|
||||
public String mStrA;
|
||||
public String mStrB;
|
||||
public bool mCheck;
|
||||
|
||||
public void DoTest()
|
||||
{
|
||||
int a = 123;
|
||||
int b = 234;
|
||||
if (mCheck)
|
||||
return;
|
||||
|
||||
//Bug001_DoTest
|
||||
while (mCheck)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static void Test()
|
||||
{
|
||||
ClassA ca = scope .();
|
||||
ca.DoTest();
|
||||
}
|
||||
}
|
23
IDE/Tests/Test1/src/bugs/Bug002.bf
Normal file
23
IDE/Tests/Test1/src/bugs/Bug002.bf
Normal file
|
@ -0,0 +1,23 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
|
||||
class Bug002
|
||||
{
|
||||
public static void Parse(String[] strs)
|
||||
{
|
||||
for (let val in strs)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int val2 = 999;
|
||||
}
|
||||
|
||||
public static void Test()
|
||||
{
|
||||
var strs = scope String[] {"aaa", "bbb", "ccc"};
|
||||
//Bug002_DoTest
|
||||
Parse(strs);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue