https://bugzilla.novell.com/show_bug.cgi?id=456605
Summary: [Regression] Compiler not complaining about instance
method called as static
Product: Mono: Compilers
Version: 2.2.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
The following test case should report an error because it is trying to call the
instance method Run as if it was a static method. gmcs compiles it and you get
an error when running. This is with mono 2.2, seems to work fine in 2.0.
using System;
class App
{
Test a = new Test ();
public Test Test {
get { return a; }
}
public static void Main (string[] args)
{
Test.Run ();
}
}
class Test
{
public void Run () { }
}
--
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs