1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 15:46:05 +02:00
Beef/IDE/Tests/CompileFail001/src/Properties.bf

40 lines
473 B
Beef
Raw Normal View History

2020-04-10 07:53:56 -07:00
namespace IDETest
{
class Properties
{
struct StructA
{
public int mA = 111;
public this()
{
}
public this(int a)
{
mA = a;
}
}
struct StructB
{
public StructA B { get; }
2022-03-01 09:49:02 -08:00
public StructA B2 { get; set mut; }
public ref StructA B3 { get; } //FAIL
public ref StructA B4 { get mut; }
2020-04-10 07:53:56 -07:00
int mZ = 9;
public this() //FAIL
{
}
public void Yoop() mut
{
B = .(); //FAIL
2022-03-01 09:49:02 -08:00
B2.mA = .(); //WARN
2020-04-10 07:53:56 -07:00
}
}
}
}