Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline temporary variable does not preserve indentation #34143

Open
jinujoseph opened this Issue Mar 15, 2019 · 1 comment

Comments

4 participants
@jinujoseph
Copy link
Contributor

jinujoseph commented Mar 15, 2019

Reported by @drewnoakes
Affected Build: 16.0.0 Preview 4.1 SVC1

Steps to reproduce:

Before

void Foo(bool b)
{
    var s = "";
    SomeMethod(
        s);
}

void SomeMethod(string _) { }

After inline s.

void Foo(bool b)
{
    SomeMethod(
(string)""); // leading whitespace removed
}

void SomeMethod(string _) { }

@gafter gafter added the Area-IDE label Mar 15, 2019

@vatsalyaagrawal vatsalyaagrawal added this to InQueue in Small Fixes via automation Mar 15, 2019

@vatsalyaagrawal vatsalyaagrawal added this to the Backlog milestone Mar 15, 2019

@CyrusNajmabadi

This comment has been minimized.

Copy link
Contributor

CyrusNajmabadi commented Mar 17, 2019

Something is very screwy there. Why is a cast getting inserted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.