icsharpcode / ILSpy

.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
21.35k stars 3.34k forks source link

Explicit interface declaration is not a member of interface #2394

Open marwie opened 3 years ago

marwie commented 3 years ago

Input code

Please see https://github.com/icsharpcode/ILSpy/issues/2389

Relevant sections EditorElement: https://github.com/Unity-Technologies/UnityCsReference/blob/61f92bd79ae862c4465d35270f9d1d57befd1761/Modules/UIElementsEditor/Inspector/EditorElement.cs#L491 Interface: https://github.com/Unity-Technologies/UnityCsReference/blob/61f92bd79ae862c4465d35270f9d1d57befd1761/Editor/Mono/Inspector/IEditorElement.cs#L21

Erroneous output

<UnityEditor>\UnityEditor\UIElements\EditorElement.cs:12191 'string IEditorElement.get_name()' in explicit interface declaration is not a member of interface 'UnityEditor.IEditorElement'

<UnityEditor>\UnityEditor\UIElements\EditorElement.cs:12270 'void IEditorElement.set_name(string)' in explicit interface declaration is not a member of interface 'UnityEditor.IEditorElement'

[SpecialName]
string IEditorElement.get_name()
{
    return base.name;
}
[SpecialName]
void IEditorElement.set_name(string value)
{
    base.name = value;
}

image

Details

Please see https://github.com/icsharpcode/ILSpy/issues/2389

siegfriedpammer commented 3 years ago

Duplicate of #1682 and #1949