--- /dev/null
+// CS0051: Inconsistent accessibility: parameter type `NV' is less accessible than method `C1.Foo(NV)'
+// Line: 14
+
+internal class NV
+{
+}
+
+public partial class C1
+{
+}
+
+partial class C1
+{
+ public void Foo (NV arg)
+ {
+ }
+}
\ No newline at end of file
while (TypeManager.HasElementType (p))
p = TypeManager.GetElementType (p);
+ if (p.BuiltinType != BuiltinTypeSpec.Type.None)
+ return true;
+
if (p.IsGenericParameter)
return true;
bool same_access_restrictions = false;
for (MemberCore mc = this; !same_access_restrictions && mc != null && mc.Parent != null; mc = mc.Parent) {
+ var tc = mc as TypeContainer;
+ if (tc != null && tc.PartialContainer != null)
+ mc = tc.PartialContainer;
+
var al = mc.ModFlags & Modifiers.AccessibilityMask;
switch (pAccess) {
case Modifiers.INTERNAL: