Priority
Show-stopper
Type
Bug 
State
Fixed 
Assignee
Eugene Pasynkov 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
Next build 
Build
241
Fixed in build
250
  • Submitted by   Carsten Jendro
    3 years ago (06 Aug 2006 17:26)
  • Updated by Carsten Jendro
    3 years ago (09 Sep 2006 13:33)
  • Jira: RSRP-25201
    (history, comments)

RSRP-25201

Invalid "type cast is redundant" message

0
	class A : ITest
	{
		public void Test()
		{
			Console.WriteLine("A");
		}
	}

	class C : A, ITest
	{
		public new void Test()
		{
			Console.WriteLine("C");
		}
	}

	class Class1
	{
		[STAThread]
		private static void Main(string[] args)
		{
			ITest c = new C();
			((A)c).Test();
			c.Test();
		}
	}


Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments