https://bugzilla.novell.com/show_bug.cgi?id=656602
https://bugzilla.novell.com/show_bug.cgi?id=656602#c0 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: [email protected] ReportedBy: [email protected] QAContact: [email protected] 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 error. 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
