[Mono-bugs] [Bug 641910] New: REPL crash when defining the same variable twice.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Sep 25 18:36:37 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=641910

https://bugzilla.novell.com/show_bug.cgi?id=641910#c0


           Summary: REPL crash when defining the same variable twice.
    Classification: Mono
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: miguel at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


In the repl type:

using System.Text.RegularExpressions; 
var a = new Regex ("^foo");           
var a = new Regex ("^foo");            
a.Matches ("foobaristas\nfool");       

System.NullReferenceException: Object reference not set to an instance of an
object
  at Class3.Host (System.Object& $retval) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object&
result, System.Boolean& result_set) [0x00000] in <filename unknown>:0 
  at Mono.CSharpShell.Evaluate (System.String input) [0x00000] in <filename
unknown>:0

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


More information about the mono-bugs mailing list