2004-06-09 Umadevi S <sumadevi@novell.com>
[mono.git] / mcs / mbas / interface.cs
index 1d2dc2f5ccaa2ba089fa7d8fc57f6404706ae31d..71cfa1cbd04d03d5d9ded7a91fa1bf171ebe45e6 100644 (file)
@@ -14,7 +14,7 @@ using System.IO;
 using System.Reflection;
 using System.Reflection.Emit;
 
-namespace Mono.CSharp {
+namespace Mono.MonoBASIC {
 
        /// <summary>
        ///   Interfaces
@@ -74,7 +74,7 @@ namespace Mono.CSharp {
                public Interface (TypeContainer parent, string name, int mod, Attributes attrs, Location l)
                        : base (parent, name, l)
                {
-                       ModFlags = Modifiers.Check (AllowedModifiers, mod, Modifiers.PRIVATE, l);
+                       ModFlags = Modifiers.Check (AllowedModifiers, mod, Modifiers.PUBLIC, l);
                        OptAttributes = attrs;
                        
                        method_builders = new ArrayList ();
@@ -713,7 +713,7 @@ namespace Mono.CSharp {
                                if (!Parent.AsAccessible (t, ModFlags))
                                        Report.Error (61, Location,
                                                      "Inconsistent accessibility: base interface `" +
-                                                     TypeManager.CSharpName (t) + "' is less " +
+                                                     TypeManager.MonoBASIC_Name (t) + "' is less " +
                                                      "accessible than interface `" +
                                                      Name + "'");