Bug 313450 (MONO52502) - We do not report CS0134
Summary: We do not report CS0134
Status: RESOLVED FIXED
Alias: MONO52502
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2003-12-23 21:12 UTC by Ben Maurer
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed patch (673 bytes, patch)
2003-12-24 03:47 UTC, Thomas Wiest
Details | Diff
Cleaner version (955 bytes, patch)
2003-12-24 04:15 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:22:47 UTC


---- Reported by bmaurer@users.sf.net 2003-12-23 14:12:01 MST ----

namespace A {
	namespace B.C {
		public class D {
			public static void Main()
			{
			}
		}
	}
}

Should give
t.cs(2,12): error CS0134: Cannot use qualified namespace names in nested
        namespace declarations



---- Additional Comments From pcgod@gmx.net 2003-12-23 20:47:13 MST ----

Created an attachment (id=165384)
proposed patch




---- Additional Comments From bmaurer@users.sf.net 2003-12-23 21:15:26 MST ----

Created an attachment (id=165385)
Cleaner version




---- Additional Comments From bmaurer@users.sf.net 2003-12-23 21:16:16 MST ----

This version implements it in the parser, a cleaner impl IMHO. Most of
the credit goes to the other Ben.



---- Additional Comments From miguel@ximian.com 2003-12-25 17:17:32 MST ----

Am not sure if we should implement this, I remember seeing in the spec
it was allowed.  Can we double check?  (dont have the spec here).



---- Additional Comments From bmaurer@users.sf.net 2003-12-25 17:43:36 MST ----

csc will not compile it, so we should not. If we did, someone might
check something into cvs that would not compile on csc. It is clearly
not a bug in their impl, they went to the effort to create an error
message, reserve an error number, document the error number, etc. 

I can't find any spec references that explictly prohibit this
behavior, however nothing in the spec specifies this case. Can you
talk to the Microsoft guys about their rationale? I can't figure out
why they would reject such a decl.



---- Additional Comments From miguel@ximian.com 2004-04-11 00:43:16 MST ----

The construct is allowed in C# 2.0 (at least on MS VS.NET 2005 compiler)

Closing this

Imported an attachment (id=165384)
Imported an attachment (id=165385)

Unknown operating system unknown. Setting to default OS "Other".