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

Key: RSRP-29795
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

Weird error highlight (const array)

Created: 13 Oct 06 11:11   Updated: 20 Jun 07 10:59
Component/s: PSI - Parser
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

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

Build: 263


 Description  « Hide
class Stuff 
{
    const int[] p = {};
}

class Program
{
    static void Main()
    {
    }
}

All following code highlighted as error and intellisense does not work.
Should be highlighted only bad initializer. Show message a kind of: 'A const of reference type other than string can only be initialized with null'



 All   Comments   Work Log   Change History      Sort Order:
Vladimir Reshetnikov - 13 Oct 06 11:13
And quick-fix: 'replace const with static readonly field'.