1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-20 00:50:25 +02:00

Protected protection improvements

This commit is contained in:
Brian Fiete 2020-12-06 07:32:01 -08:00
parent 670de8d4dc
commit 8852e7e194
7 changed files with 94 additions and 36 deletions

View file

@ -49,6 +49,16 @@ namespace Tests
{
mAPriv
}
private static void PrivA2()
{
}
protected static void ProtA2()
{
}
}
class ClassB : ClassA
@ -70,7 +80,11 @@ namespace Tests
{
var ca = new ClassA(); //FAIL
base.PrivA(); //FAIL
base.ProtA();
ca.GetPriv!();
ClassA.PrivA2(); //FAIL
ClassA.ProtA2();
}
protected void ProtB()
@ -103,6 +117,8 @@ namespace Tests
ca.mAProt = 1; //FAIL
mAPriv = 1; //FAIL
mAProt = 1;
base.mAPriv = 1; //FAIL
base.mAProt = 1;
}
}