mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-28 04:28:01 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
48
IDE/Tests/Test1/src/Splats.bf
Normal file
48
IDE/Tests/Test1/src/Splats.bf
Normal file
|
@ -0,0 +1,48 @@
|
|||
namespace IDETest
|
||||
{
|
||||
struct SplatA
|
||||
{
|
||||
public int mA;
|
||||
}
|
||||
|
||||
struct SplatB : SplatA
|
||||
{
|
||||
public float mB;
|
||||
}
|
||||
|
||||
struct SplatC : SplatB
|
||||
{
|
||||
public char8 mC;
|
||||
|
||||
public void DoTest()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public float GetB()
|
||||
{
|
||||
return mB;
|
||||
}
|
||||
}
|
||||
|
||||
class SplatTester
|
||||
{
|
||||
public static int GetC(SplatC sc)
|
||||
{
|
||||
return sc.mA;
|
||||
}
|
||||
|
||||
public static void Test()
|
||||
{
|
||||
SplatC sc = .();
|
||||
sc.mA = 123;
|
||||
sc.mB = 1.2f;
|
||||
sc.mC = 'Z';
|
||||
|
||||
//SplatTester_SplatC_Call
|
||||
sc.DoTest();
|
||||
sc.GetB();
|
||||
GetC(sc);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue