Author: rolf
Date: 2007-10-15 04:24:53 -0400 (Mon, 15 Oct 2007)
New Revision: 87483

Added:
   trunk/mono-basic/vbnc/vbnc/tests/Bugs/30451-bug-332869.vb
Modified:
   trunk/mono-basic/vbnc/vbnc/source/ChangeLog
   trunk/mono-basic/vbnc/vbnc/source/General/CommandLine.vb
   trunk/mono-basic/vbnc/vbnc/tests/ChangeLog
Log:
* source/General/CommandLine.vb: If no Option Explicit is specified,
  default to On. Fixes #332869.
* tests/Bugs/30451-bug-332869.vb: Added.

Modified: trunk/mono-basic/vbnc/vbnc/source/ChangeLog
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/ChangeLog 2007-10-15 08:23:45 UTC (rev 
87482)
+++ trunk/mono-basic/vbnc/vbnc/source/ChangeLog 2007-10-15 08:24:53 UTC (rev 
87483)
@@ -1,5 +1,10 @@
 2007-10-15  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
+       * General/CommandLine.vb: If no Option Explicit is specified, default 
to On.
+         Fixes #332869.
+
+2007-10-15  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
        * Expressions/DelegateOrObjectCreationExpression.vb,
          Descriptors/TypeParameterDescriptor.vb, Types/TypeParameter.vb,
          General/TypeCache.vb, General/TypeCache.in: Implement construction of

Modified: trunk/mono-basic/vbnc/vbnc/source/General/CommandLine.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/source/General/CommandLine.vb    2007-10-15 
08:23:45 UTC (rev 87482)
+++ trunk/mono-basic/vbnc/vbnc/source/General/CommandLine.vb    2007-10-15 
08:24:53 UTC (rev 87483)
@@ -245,7 +245,7 @@
     ''' <summary>
     ''' /optionexplicit[+|-]    Require explicit declaration of variables.
     ''' </summary>
-    Private m_eOptionExplicit As OptionExplicitTypes = OptionExplicitTypes.Off
+    Private m_eOptionExplicit As OptionExplicitTypes = OptionExplicitTypes.On
 
     ''' <summary>
     ''' /optionstrict[+|-]      Enforce strict language semantics.

Added: trunk/mono-basic/vbnc/vbnc/tests/Bugs/30451-bug-332869.vb
===================================================================
--- trunk/mono-basic/vbnc/vbnc/tests/Bugs/30451-bug-332869.vb   2007-10-15 
08:23:45 UTC (rev 87482)
+++ trunk/mono-basic/vbnc/vbnc/tests/Bugs/30451-bug-332869.vb   2007-10-15 
08:24:53 UTC (rev 87483)
@@ -0,0 +1,15 @@
+Class UseBeforeDefine1
+
+    Shared Sub Main
+
+      Use(b)
+
+    End Sub
+
+
+
+    Shared Sub Use(a As Attribute)
+
+    End Sub
+
+End Class

Modified: trunk/mono-basic/vbnc/vbnc/tests/ChangeLog
===================================================================
--- trunk/mono-basic/vbnc/vbnc/tests/ChangeLog  2007-10-15 08:23:45 UTC (rev 
87482)
+++ trunk/mono-basic/vbnc/vbnc/tests/ChangeLog  2007-10-15 08:24:53 UTC (rev 
87483)
@@ -1,5 +1,9 @@
 2007-10-15  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
 
+       * Bugs/30451-bug-332869.vb: Added.
+
+2007-10-15  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 
+
        * Bugs/bug-332868.vb, Errors/32046.vb, Errors/32085.vb: Added.
 
 2007-08-14  Rolf Bjarne Kvinge <[EMAIL PROTECTED]> 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to