[Mono-bugs] [Bug 63580][Nor] New - Additional parameter "/r:Microsoft.VisualBasic" leads to compilation errors

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 21 Aug 2004 06:28:55 -0400 (EDT)


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 jwezel@compumaster.de.

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

--- shadow/63580	2004-08-21 06:28:55.000000000 -0400
+++ shadow/63580.tmp.13932	2004-08-21 06:28:55.000000000 -0400
@@ -0,0 +1,69 @@
+Bug#: 63580
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Basic
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jwezel@compumaster.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Additional parameter "/r:Microsoft.VisualBasic" leads to compilation errors
+
+Description of Problem:
+Test class doesn't compile because class Microsoft.VisualBasic has been 
+twice in an internal collection of required sources of the compiler
+
+Steps to reproduce the problem:
+[root@lwezel tmp]# cat test.vb
+imports System
+imports Microsoft.VisualBasic
+
+Module Module1
+
+    Sub Main()
+        Console.WriteLine(Microsoft.VisualBasic.ChrW(70))
+    End Sub
+
+End Module
+
+[root@lwezel tmp]# mbas test.vb /r:Microsoft.VisualBasic
+--------
+MonoBASIC: THIS IS STILL ALPHA AND UNSUPPORTED SOFTWARE, USE AT YOUR OWN 
+RISK.
+--------
+test.vb(7,43) error BC-0001: The name 'Microsoft.VisualBasic.ChrW' can be 
+resolved to a member of more than one standard 
+module: 'Microsoft.VisualBasic.Strings''Microsoft.VisualBasic.Strings'. 
+Please fully qualify it.
+Compilation failed: 1 Error(s), 0 warnings
+
+
+Actual Results:
+Compilation failes because of a duplicate of available namespace MS.VB (I 
+expect) because of the additional parameter "/r:Microsoft.VisualBasic".
+
+Expected Results:
+Should compile
+
+How often does this happen? 
+Always
+
+Additional Information:
+
+Currently, if you would remove the name "Microsoft.VisualBasic" in front 
+of the ChrW, it would compile fine. Very suspectous to me...
+    Sub Main()
+        Console.WriteLine(ChrW(70))
+    End Sub
+
+Alternatively, starting the test module as it is on the top, you can 
+compile fine with
+[root@lwezel tmp]# mbas test.vb 
+and without "/r:Microsoft.VisualBasic".