[Mono-bugs] [Bug 52067][Cri] New - Public Definitions in Module have to be treated as global symbols

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 20 Feb 2004 08:02:29 -0500 (EST)


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 rafaelteixeirabr@hotmail.com.

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

--- shadow/52067	2004-02-20 08:02:29.000000000 -0500
+++ shadow/52067.tmp.19828	2004-02-20 08:02:29.000000000 -0500
@@ -0,0 +1,58 @@
+Bug#: 52067
+Product: Mono/Compilers
+Version: unspecified
+OS: unknown
+OS Details: 
+Status: ASSIGNED   
+Resolution: 
+Severity: Unknown
+Priority: Critical
+Component: Basic
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rafaelteixeirabr@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Public Definitions in Module have to be treated as global symbols
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+mbas cant compile this code :/
+
+== module1.vb ==
+
+Imports Microsoft.VisualBasic.Strings
+Imports System.Windows.Forms
+
+Module Module1
+
+    Sub Main()
+        Console.WriteLine(Right(Application.StartupPath, 1))
+    End Sub
+
+End Module
+
+
+Actual Results:
+
+>mbas /r:System.Windows.Forms.dll module1.vb
+module1.vb(8) error BC0103: The name `Right' could not be found in 
+`Module1'
+Compilation failed: 1 Error(s), 0 warnings
+
+Expected Results:
+
+
+How often does this happen? 
+
+always
+
+Additional Information:
+
+Any public definitions in vb "Modules", need to be name resolved without
+needing the module name as if they where "global" symbols.
+
+This is an old problem, not yet tackled by us...