nasser / magic

Morgan And Grand Iron Clojure
http://nas.sr/magic/
366 stars 18 forks source link

Invalid IL on value type instance method #225

Open nasser opened 2 years ago

nasser commented 2 years ago
(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