Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid IL on value type instance method #225

Open
nasser opened this issue Mar 21, 2022 · 0 comments
Open

Invalid IL on value type instance method #225

nasser opened this issue Mar 21, 2022 · 0 comments
Assignees
Labels

Comments

@nasser
Copy link
Owner

nasser commented Mar 21, 2022

(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 nasser added the bug label Mar 21, 2022
@nasser nasser self-assigned this Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant