mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed variable assignment detection with classes member values
This commit is contained in:
parent
458eb90752
commit
e1394e2fb7
2 changed files with 37 additions and 4 deletions
|
@ -25,5 +25,35 @@ namespace IDETest
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue