Rui Lima
Rui Lima

Reputation: 7403

Visual Studio 2015 crashes on an IF statement

[Seems to be a bug]

I'm getting a really weird behavior on Visual Studio 2015. Every time I have a const inside a method in a controller and try to use an IF statement, my VS 2015 crashes.

    public ActionResult About()
    {
        if() //<-crashes when I try to add this line

        const string filename = @"c:\temp\test.txt";
        ViewBag.Message = "Your application description page.";

        return View();
    }

Has anyone faced this issue as well? Pic with the code

Upvotes: 1

Views: 329

Answers (1)

Rui Lima
Rui Lima

Reputation: 7403

Seems to be a bug in Visual Studio 2015 Preview. Thanks for the comments

Upvotes: 2

Related Questions