Can't compile static abstract member functions with byref parameters #18135
Labels
Area-Compiler-CodeGen
IlxGen, ilwrite and things at the backend
Bug
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
FSC : error FS2014: A problem occurred writing the binary 'obj/Debug/net9.0/refint/Sandbox0.dll': Error in pass3 for type Program, error: Error in pass3 for type T, error: Error in GetMethodRefAsMethodDefIdx for mref = ("Program.I.Foo", "T"), error: MethodDefNotFound
Repro steps
Expected behavior
This should compile fine
Actual behavior
Weird error quoted above
Known workarounds
Replace byref parameters with
Span<T>
Related information
The text was updated successfully, but these errors were encountered: