Browse Source

Fixed an issue where two `PrimaryCtorWithField` types in unit tests could not be decompiled correctly

pull/3598/head
sonyps5201314 2 months ago
parent
commit
fee9db9f9d
  1. 8
      ICSharpCode.Decompiler/CSharp/RecordDecompiler.cs

8
ICSharpCode.Decompiler/CSharp/RecordDecompiler.cs

@ -280,6 +280,10 @@ namespace ICSharpCode.Decompiler.CSharp @@ -280,6 +280,10 @@ namespace ICSharpCode.Decompiler.CSharp
}
}
}
else
{
continue;
}
}
if (!CheckForInitPrimaryConstructor(method, unspecializedMethod, body))
@ -340,10 +344,6 @@ namespace ICSharpCode.Decompiler.CSharp @@ -340,10 +344,6 @@ namespace ICSharpCode.Decompiler.CSharp
backingMember = field;
backingMembers.Add(backingMember);
}
else
{
return false;
}
}
if (!isStruct)

Loading…
Cancel
Save