2007-01-25 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / mcs / namespace.cs
index 08f85f75b2892eb3c4111838f3f7c1715ff82077..af9c93b0d6b3744526fb375606039b4e942eecf1 100644 (file)
@@ -269,7 +269,7 @@ namespace Mono.CSharp {
                {
                        // Expression members.
                        this.eclass = ExprClass.Namespace;
-                       this.Type = null;
+                       this.Type = typeof (Namespace);
                        this.loc = Location.Null;
 
                        this.parent = parent;
@@ -535,7 +535,7 @@ namespace Mono.CSharp {
                                resolved = fne as Namespace;
                                if (resolved == null) {
                                        Report.Error (138, Location,
-                                               "`{0} is a type not a namespace. A using namespace directive can only be applied to namespaces", Name.ToString ());
+                                               "`{0}' is a type not a namespace. A using namespace directive can only be applied to namespaces", Name.ToString ());
                                }
                                return resolved;
                        }