[Mono-bugs] [Bug 656602] New: Option Strict On seems not working

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 30 12:19:46 EST 2010



           Summary: Option Strict On seems not working
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Basic
        AssignedTo: rkvinge at novell.com
        ReportedBy: himajin100000 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101129
Firefox/4.0b8pre Firefox/4.0b8pre

the code with "option strict on" and "implicit casting from string to integer"
compiles successfully, where it should not. at least MS Compiler gives me

Reproducible: Always

Steps to Reproduce:
1. try to compile the following code.

Option Explicit On

Option Strict On

Class X

        Public Shared Sub Main()

                Dim x As Integer = "5"

        End Sub

End Class

Actual Results:  
it compiled successfully.

Expected Results:  
the sourcecode has "Option Strict On", so the compilation should fail.

when I tested this steps with Microsoft's VB Compiler, it gave me BC30512

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list