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

Wrong dynamic decompilation #2278

Closed
wwh1004 opened this issue Jan 19, 2021 · 0 comments
Closed

Wrong dynamic decompilation #2278

wwh1004 opened this issue Jan 19, 2021 · 0 comments
Labels
Bug Decompiler The decompiler engine itself

Comments

@wwh1004
Copy link
Contributor

wwh1004 commented Jan 19, 2021

input:

namespace ILSpyBugs {
	class Class3 {
		static void Method1(string s) {
		}

		void Method2() {
			dynamic d = "sss";
			Method1("s" + d);
		}
	}
}

output:

internal class Class3
{
	private static void Method1(string s)
	{
	}

	private void Method2()
	{
		dynamic d = "sss";
		this.Method1("s" + d);
	}
}

"this.Method1" is incorrect, "Method1" is a static method

ilspy version: 7.0.0.6284-preview2

@wwh1004 wwh1004 added Bug Decompiler The decompiler engine itself labels Jan 19, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2021
ElektroKill pushed a commit to dnSpyEx/ILSpy that referenced this issue Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Decompiler The decompiler engine itself
Projects
None yet
Development

No branches or pull requests

1 participant