1
0
Fork 0
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:
Brian Fiete 2021-01-21 04:42:15 -08:00
parent 458eb90752
commit e1394e2fb7
2 changed files with 37 additions and 4 deletions

View file

@ -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;
}
}
}
}