Skip to content

Commit 769710e

Browse files
committed
Generate fixups for static abstracts
1 parent baa1357 commit 769710e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Compiler/CodeGen/IlxGen.fs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9212,7 +9212,13 @@ and GenMethodForBinding
92129212
if not memberInfo.MemberFlags.IsOverrideOrExplicitImpl then
92139213
mkILStaticMethod (ilMethTypars, mspec.Name, access, ilParams, ilReturn, ilMethodBody)
92149214
else // We want to get potential fixups and hidebysig for abstract statics:
9215-
let flagFixups = [ fixupStaticAbstractSlotFlags ]
9215+
let flagFixups =
9216+
[
9217+
fixupStaticAbstractSlotFlags
9218+
match ComputeMethodImplNameFixupForMemberBinding cenv v with
9219+
| Some nm -> renameMethodDef nm
9220+
| None -> ()
9221+
]
92169222

92179223
let mdef =
92189224
mkILStaticMethod (ilMethTypars, mspec.Name, access, ilParams, ilReturn, ilMethodBody)

0 commit comments

Comments
 (0)