[Mono-bugs] [Bug 22625] New - Namespace/Delegate Parameter Type Reference Wierdness

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
27 Mar 2002 17:59:29 -0000


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bryan@alphora.com.

http://bugzilla.ximian.com/show_bug.cgi?id=22625

--- shadow/22625	Wed Mar 27 12:59:29 2002
+++ shadow/22625.tmp.13369	Wed Mar 27 12:59:29 2002
@@ -0,0 +1,62 @@
+Bug#: 22625
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: Mono 0.10 under Winders
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bryan@alphora.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Namespace/Delegate Parameter Type Reference Wierdness
+
+The attached testcase.cs file has the following errors.
+
+Works fine under CSC.
+
+The strange thing is if you take the namespace defenition out of the 
+testcase.cs (and therefore use the default namespace) then it will work 
+fine.
+
+C:\src\Dataphor\Base>mcs testcase.cs
+.\testcase.cs(6) error CS246: Cannot find type `StringList'
+.\testcase.cs(6) error CS246: Cannot find type `StringList.StringItem'
+.\testcase.cs(6) error CS246: Cannot find type `StringList.StringItem'
+
+Unhandled Exception: System.ArgumentNullException: Value cannot be null.
+Parameter name: clsArgument
+   at System.Reflection.Emit.SignatureHelper.AddOneArgTypeHelper(Type 
+clsArgument)
+   at System.Reflection.Emit.SignatureHelper.GetMethodSigHelper(Module 
+mod, CallingConventions callingConvention, Type r
+eturnType, Type[] parameterTypes)
+   at System.Reflection.Emit.MethodBuilder.Init(String name, 
+MethodAttributes attributes, CallingConventions callingConv
+ention, Type returnType, Type[] parameterTypes, Module mod, TypeBuilder 
+type, Boolean bIsGlobalMethod)
+   at System.Reflection.Emit.MethodBuilder..ctor(String name, 
+MethodAttributes attributes, CallingConventions callingCon
+vention, Type returnType, Type[] parameterTypes, Module mod, TypeBuilder 
+type, Boolean bIsGlobalMethod)
+   at System.Reflection.Emit.TypeBuilder.DefineMethod(String name, 
+MethodAttributes attributes, CallingConventions calli
+ngConvention, Type returnType, Type[] parameterTypes)
+   at Mono.CSharp.Delegate.Define(TypeContainer parent)
+   at Mono.CSharp.RootContext.PopulateTypes()
+   at Mono.CSharp.Driver.MainDriver(String[] args)
+   at Mono.CSharp.Driver.Main(String[] args)
+
+C:\src\Dataphor\Base>csc testcase.cs
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+
+error CS5001: Program 'testcase.exe' does not have an entry point defined
+
+C:\src\Dataphor\Base>