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

Key: RSRP-31609
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Lomov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

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

error CS0426: The type name 'Green' does not exist in the type 'Yellow'

Created: 10 Nov 06 17:49   Updated: 20 Jun 07 10:57
Component/s: PSI - Resolve
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

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

Build: 301


 Description  « Hide
class Base<T>
{
    public class Nested { }
}

class Derived : Base<Derived.Nested> // error CS0426: The type name 'Green' does not exist in the type 'Yellow'
{ }

Complier message is not quite clear here, but this code definitely should not compile because of circular dependency.



 All   Comments   Work Log   Change History      Sort Order:
Vladimir Reshetnikov - 10 Nov 06 18:01
Sorry, typo in comment.
class Base<T>
{
    public class Nested { }
}

class Derived : Base<Derived.Nested> // error CS0426: The type name 'Nested' does not exist in the type 'Derived'
{ }

Vladimir Reshetnikov - 10 Nov 06 18:12
Frankly speaking, I do not know item in C# spec which forbid this code.