[Mono-bugs] [Bug 611836] New: Invalid rror verifying Class1:Host (object&): Incompatible type Complex in static field store at
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Jun 4 15:16:35 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=611836
http://bugzilla.novell.com/show_bug.cgi?id=611836#c0
Summary: Invalid rror verifying Class1:Host (object&):
Incompatible type Complex in static field store at
Classification: Mono
Product: Mono: Runtime
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: verifier
AssignedTo: rkumpera at novell.com
ReportedBy: msafar at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Compile and Run with verifier
// Compiler options: -r:Mono.CSharp.dll
using System;
using Mono.CSharp;
public class MyTest {
static void Run (string id, string stmt)
{
if (!Evaluator.Run (stmt))
Console.WriteLine ("Failed on test {0}", id);
}
static void Evaluate (string id, string expr, object expected)
{
try {
object res = Evaluator.Evaluate (expr);
if (res == null && expected == null)
return;
if (!expected.Equals (res)){
Console.WriteLine ("Failed on test {2} Expecting {0}, got {1}",
expected, res, id);
throw new Exception ();
}
} catch {
Console.WriteLine ("Failed on test {0}", id);
throw;
}
}
static void Main ()
{
Evaluator.Init (new string [0]); //new string [] { "-v", "-v" });
Evaluator.Run ("using System; using System.Linq;");
Run ("LINQ-3", "var first_scope = new int [] {1,2,3};");
Run ("LINQ-4", "var second_scope = from x in first_scope select x;");
}
}
Unhandled Exception: System.Security.VerificationException: Error verifying
Class1:Host (object&): Incompatible type Complex in static field store at
0x0029
at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object&
result, System.Boolean& result_set) [0x00000] in <filename unknown>:0
at Mono.CSharp.Evaluator.Run (System.String statement) [0x00000] in <filename
unknown>:0
at MyTest.Run (System.String id, System.String stmt) [0x00000] in <filename
unknown>:0
at MyTest.Main () [0x00000] in <filename unknown>:0
--
Configure bugmail: http://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