Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

The ending TextLocation of an ArrayCreateExpression is incorrect when the array is initialized with zero elements #44

Closed
holmak opened this issue Apr 22, 2012 · 0 comments
Assignees

Comments

@holmak
Copy link

holmak commented Apr 22, 2012

Repro:

namespace TestNamespace
{
    public class TestClass
    {
        void TestMethod()
        {
            // The ArrayCreateExpression's TextLocations encompass "new int[]"; it should include the curly braces:
            int[] testArray1 = new int[] { };   

            // The ArrayCreateExpression's TextLocations encompass "new int[] { 0, 1, 2 }", as expected:
            int[] testArray2 = new int[] { 0, 1, 2 };
        }
    }
}
mkrueger added a commit that referenced this issue Apr 24, 2012
is incorrect when the array is initialized with zero elements
@ghost ghost assigned mkrueger Apr 24, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants