History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-25421
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dmitry Lomov
Reporter: Philippe Leybaert
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

Bogus error in error-free code

Created: 06 Aug 06 17:39   Updated: 31 May 07 16:55
Component/s: PSI - Resolve
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 244
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=25421


 Description  « Hide
The code below is flagged as an error by Resharper, but it compiles fine and makes perfect sense.
public class BugTest
	{
		private class MyBaseClass<T>
		{
			public static T[] Run()
			{
				return null;
			}
		}

		private class MyClass : MyBaseClass<MyClass.MyInnerClass>
		{
			public class MyInnerClass
			{
			}
		}

		public void Run()
		{
			MyClass.MyInnerClass[] result = MyClass.Run();

		}
	}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.