mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Improved protection checks of inner type
This commit is contained in:
parent
7864304d9e
commit
01ba9507c0
2 changed files with 47 additions and 4 deletions
|
@ -5,7 +5,39 @@ using System;
|
|||
namespace Tests
|
||||
{
|
||||
class Protection
|
||||
{
|
||||
{
|
||||
class TypeA
|
||||
{
|
||||
private struct TypeB { }
|
||||
|
||||
public TypeA mValA;
|
||||
public TypeB mValB; //FAIL
|
||||
public TypeC mValC; //FAIL
|
||||
|
||||
private class TypeC
|
||||
{
|
||||
private class TypeD { }
|
||||
|
||||
public class TypeE
|
||||
{
|
||||
private class TypeF { }
|
||||
|
||||
public TypeA mValA;
|
||||
public TypeB mValB;
|
||||
public TypeC mValC;
|
||||
public TypeD mValD; //FAIL
|
||||
public TypeE mValE;
|
||||
public TypeF mValF; //FAIL
|
||||
}
|
||||
|
||||
public TypeA mValA;
|
||||
public TypeB mValB;
|
||||
public TypeC mValC;
|
||||
public TypeD mValD; //FAIL
|
||||
public TypeE mValE;
|
||||
}
|
||||
}
|
||||
|
||||
class ClassA
|
||||
{
|
||||
private int mAPriv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue