I'm trying to override a method with a byref parameter, the code below is an example
type Incrementor(z) =
abstract member Increment : int byref * int byref -> unit
default this.Increment(i : int byref,j : int byref) =
i <- i + z
type Decrementor(z) =
inherit Incrementor(z)
override this.Increment(i : int byref,j : int byref) =
base.Increment(ref i,ref j)
i <- i - z
but the compiler give me this error:
A type instantiation involves a byref type. This is not permitted by the rules of Common IL.
I don't understand what is the problem