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

Default interface implementation unsupported #395

Open
AndroidMaster24 opened this issue Jan 3, 2025 · 0 comments
Open

Default interface implementation unsupported #395

AndroidMaster24 opened this issue Jan 3, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@AndroidMaster24
Copy link

dnSpyEx version

6.5.1

Describe the Bug

dnSpy is unable to compile any methods in Character because the target runtime doesn't support default interface implementation

How To Reproduce

  1. Download sample.zip
  2. Open in dnSpy
  3. Open class Character
  4. Edit any method by right clicking and choose "Edit method (C#)"
  5. Click "Compile" without making any changes

Expected Behavior

Be able to compile, with or without any changes

Actual Behavior

After clicking "Compile", I got the following errors

Severity	Code	Description	File	Line
Error	CS8702	'IAbilityOwner.ApplyVariableOverride(IAbility, Variable)' cannot implement interface member 'IAbilityOwner.ApplyVariableOverride(IAbility, Variable)' in type 'Character' because the target runtime doesn't support default interface implementation.	main.cs	7

Severity	Code	Description	File	Line
Error	CS8702	'ITransform.Forward.get' cannot implement interface member 'ITransform.Forward.get' in type 'Character' because the target runtime doesn't support default interface implementation.	main.cs	7

Additional Context

No response

@AndroidMaster24 AndroidMaster24 added the bug Something isn't working label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant