This is a migrated thread and some comments may be shown as answers.

BUG: Generic Class Causes False Error with Inner Enum with Initializers

1 Answer 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris Eargle
Top achievements
Rank 1
Chris Eargle asked on 30 Nov 2009, 08:17 PM

 

This works fine:

        public abstract class Scope  
        {  
            private enum AccessOptions  
            {  
                CurrentOnly = 0,  
                AllAvailable = 1,  
            }  
        } 


But this doesn't:

 

 

 

        public abstract class Scope<T> 
        {  
            private enum AccessOptions  
            {  
                CurrentOnly = 0,  
                AllAvailable = 1,  
            }  
        } 


JustCode gives the following false error:

C#: An instance of type 'ConsoleApplication12.Scope Program.cs ConsoleApplication12 18 17

 

 

 


 

1 Answer, 1 is accepted

Sort by
0
Ivo Bratoev
Telerik team
answered on 02 Dec 2009, 01:13 PM
Hi Chris Eargle,
Thanks for the bug report.
I reproduced the problem and it is added to our backlog with highest priority.

Regards,
Ivo Bratoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Chris Eargle
Top achievements
Rank 1
Answers by
Ivo Bratoev
Telerik team
Share this question
or