Skip to content

Commit

Permalink
Generate fixups for static abstracts
Browse files Browse the repository at this point in the history
  • Loading branch information
gusty committed Oct 28, 2023
1 parent 2dc5359 commit 62cee36
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Compiler/CodeGen/IlxGen.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9212,7 +9212,13 @@ and GenMethodForBinding
if not memberInfo.MemberFlags.IsOverrideOrExplicitImpl then
mkILStaticMethod (ilMethTypars, mspec.Name, access, ilParams, ilReturn, ilMethodBody)
else // We want to get potential fixups and hidebysig for abstract statics:
let flagFixups = [ fixupStaticAbstractSlotFlags ]
let flagFixups =
[
fixupStaticAbstractSlotFlags
match ComputeMethodImplNameFixupForMemberBinding cenv v with
| Some nm -> renameMethodDef nm
| None -> ()
]

let mdef =
mkILStaticMethod (ilMethTypars, mspec.Name, access, ilParams, ilReturn, ilMethodBody)
Expand Down

0 comments on commit 62cee36

Please sign in to comment.