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 method doesn't show in simple cases #1081

Open
GurGaller opened this issue Apr 25, 2023 · 0 comments
Open

Inline method doesn't show in simple cases #1081

GurGaller opened this issue Apr 25, 2023 · 0 comments

Comments

@GurGaller
Copy link

Product and Version Used: 4.3.0

Steps to Reproduce:
See the list of available code actions on the call to Square in this snippet:

public static void Main()
{
    var squared = Square(5);
}

private static int Square(int x)
{
    var result = x * x;
    return result;
}

I couldn't get inline-method to work for any function that doesn't begin with a return statement (which is a small minority of functions that can be inlined)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants