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

CS0266 Error #302

Open
Fang717 opened this issue Mar 4, 2024 · 6 comments
Open

CS0266 Error #302

Fang717 opened this issue Mar 4, 2024 · 6 comments
Labels
bug Something isn't working decompiler Relating to the C#, VB.NET, and IL decompiler

Comments

@Fang717
Copy link

Fang717 commented Mar 4, 2024

dnSpyEx version

6.5.0

Describe the Bug

I cannot re-compile the source code after dnSpyEX decompiling. This is a casting problem. Here are 2 files : dnSpyEx 6.5.0
x86 and ILSpy 6.2.1 x86
dnSpyEx.zip
ILSpy.zip

How To Reproduce

Please check these sources code from dnSpyEX and ILSpy

Expected Behavior

I think dnSpy should generate corrected output.

Actual Behavior

Please above.

Additional Context

No response

@Fang717 Fang717 added the bug Something isn't working label Mar 4, 2024
@Fang717
Copy link
Author

Fang717 commented Mar 4, 2024

I hope I did everything correctly. It was my first bug report. :-)

@ElektroKill
Copy link
Member

Hello, would it be possible for you to provide me with the file you are trying to decompile? This way I can reproduce the issue easily on my system and work on finding a potential fix!
This looks like an issue with type inference so it might be very complicated to fix in the current decompiler or it could be easy, without the file I cannot really judge this accurately. If it's the first case, then it will likely be fixed when the decompiler engine is updated.

If you do not want to upload the file to GitHub, you can email it to me at [email protected]

@ElektroKill ElektroKill added the decompiler Relating to the C#, VB.NET, and IL decompiler label Mar 7, 2024
@Oodachi
Copy link

Oodachi commented Apr 25, 2024

ILSpy
ILSpy

dnSpy
dnSpy

Rider
Rider

DDL
E1100.zip

@ElektroKill
Copy link
Member

ILSpy ILSpy

dnSpy dnSpy

Rider Rider

DDL E1100.zip

What error are you reporting here? the same error as the original issue? Could you perhaps pinpoint where this error occurs? Furthermore, when providing sample files, please include all necessary dependency files required for this file. Without it the decompilation will not be accurate.

@Oodachi
Copy link

Oodachi commented Apr 26, 2024

What error are you reporting here?

I cannot re-compile the source code after dnSpyEX decompiling.

the same error as the original issue?

I think so.

Could you perhaps pinpoint where this error occurs?

image

Furthermore, when providing sample files, please include all necessary dependency files required for this file. Without it the decompilation will not be accurate.

ddl.zip

@ElektroKill
Copy link
Member

What error are you reporting here?

I cannot re-compile the source code after dnSpyEX decompiling.

the same error as the original issue?

I think so.

Could you perhaps pinpoint where this error occurs?

image

Furthermore, when providing sample files, please include all necessary dependency files required for this file. Without it the decompilation will not be accurate.

ddl.zip

This issue with NullableContext is a different issue from the original issue reported here regarding casting. Next time please refrain from hijacking issues that are not related. Your issue will be fixed when #5 gets resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working decompiler Relating to the C#, VB.NET, and IL decompiler
Projects
None yet
Development

No branches or pull requests

3 participants