magic icon indicating copy to clipboard operation
magic copied to clipboard

Invalid IL on value type instance method

Open nasser opened this issue 3 years ago • 0 comments

(let [h (System.HashCode.)]
      (.Add h 1)
      (.ToHashCode h))
;; Exception System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidProgramException: Invalid IL code in <magic>expr_382:eval (): IL_003a: callvirt  0x0a000002

we still don't have the full story on value type instance methods locked down

nasser avatar Mar 21 '22 17:03 nasser