2002-01-24 Miguel de Icaza <miguel@ximian.com>
+ * expression.cs (Invocation.EmitCall): Remove chunk of buggy
+ code. We should not use force into static mode if the method is
+ not virtual. Fixes bug in MIS
+
* statement.cs (Do.Emit, While.Emit, For.Emit,
Statement.EmitBoolExpression): Add support to Do and While to
propagate infinite loop as `I do return' semantics.
if (Arguments != null)
EmitArguments (ec, method, Arguments);
+#if BLAH
if (method is MethodInfo){
MethodInfo mi = (MethodInfo) method;
if (!mi.IsVirtual)
is_static = true;
}
+#endif
+
+ bool debug = false;
+ if (method.Name == "Send"){
+ Console.WriteLine ("is_static: " + is_static);
+ Console.WriteLine ("struct_call: " + struct_call);
+ Console.WriteLine ("is_base: " + is_base);
+
+ Console.WriteLine ("method: " + method.IsStatic);
+ Console.WriteLine ("method: " + method);
+ }
if (is_static || struct_call || is_base){
if (method is MethodInfo)