mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 23:56:05 +02:00
86 lines
1 KiB
Beef
86 lines
1 KiB
Beef
using System;
|
|
namespace IDETest
|
|
{
|
|
class Declarations
|
|
{
|
|
class ClassA : InnerA //FAIL
|
|
{
|
|
class InnerA
|
|
{
|
|
}
|
|
}
|
|
|
|
class ClassB : InnerB.Zop //FAIL
|
|
{
|
|
class InnerB
|
|
{
|
|
}
|
|
}
|
|
|
|
class ClassC : InnerC.Zop //FAIL
|
|
{
|
|
class InnerC
|
|
{
|
|
public class Zop
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
public class ClassD
|
|
{
|
|
public int mA;
|
|
public int mB;
|
|
}
|
|
|
|
public struct StructA
|
|
{
|
|
public int32 mA;
|
|
public int32 mB;
|
|
}
|
|
|
|
public struct StructB
|
|
{
|
|
ClassD parent;
|
|
StructA mSA;
|
|
int mInnerInt;
|
|
|
|
public this(ClassD test)
|
|
{
|
|
parent = test;
|
|
mInnerInt = parent.mA;
|
|
|
|
mSA.mA = 123;
|
|
int a = mSA.mA;
|
|
int b = mSA.mB; //FAIL
|
|
mSA.mB = 234;
|
|
}
|
|
}
|
|
|
|
[AttributeUsage(.All)]
|
|
struct AttribAAttribute : Attribute
|
|
{
|
|
AttribAAttribute mVal; //FAIL
|
|
}
|
|
|
|
[AttributeUsage(.All)]
|
|
struct AttribBAttribute : Attribute
|
|
{
|
|
[AttribB] //FAIL
|
|
int mVal; //FAIL
|
|
}
|
|
|
|
[AttributeUsage(.All)]
|
|
struct AttribCAttribute : Attribute
|
|
{
|
|
[AttribC] //FAIL
|
|
int Val //FAIL
|
|
{
|
|
get
|
|
{
|
|
return 123;
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|