[Mono-bugs] [Bug 456605] New: [Regression] Compiler not complaining about instance method called as static
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Dec 4 17:39:32 EST 2008
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: mono-bugs at lists.ximian.com
ReportedBy: lluis at novell.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list