mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 12:55:59 +02:00
Improving auto-implemented properties
This commit is contained in:
parent
66aeb0a302
commit
664078557f
7 changed files with 212 additions and 24 deletions
35
IDE/Tests/CompileFail001/src/Properties.bf
Normal file
35
IDE/Tests/CompileFail001/src/Properties.bf
Normal file
|
@ -0,0 +1,35 @@
|
|||
namespace IDETest
|
||||
{
|
||||
class Properties
|
||||
{
|
||||
struct StructA
|
||||
{
|
||||
public int mA = 111;
|
||||
|
||||
public this()
|
||||
{
|
||||
}
|
||||
|
||||
public this(int a)
|
||||
{
|
||||
mA = a;
|
||||
}
|
||||
}
|
||||
|
||||
struct StructB
|
||||
{
|
||||
public StructA B { get; }
|
||||
|
||||
int mZ = 9;
|
||||
|
||||
public this() //FAIL
|
||||
{
|
||||
}
|
||||
|
||||
public void Yoop() mut
|
||||
{
|
||||
B = .(); //FAIL
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue