-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Fix issue #1224 #1243
Fix issue #1224 #1243
Conversation
@@ -660,7 +660,11 @@ ILInstruction PrepareCallTarget(IType expectedType, ILInstruction target, IType | |||
if (target == null) { | |||
return (new LdObj(new LdsFlda((IField)member), member.ReturnType), member.ReturnType); | |||
} else { | |||
return (new LdObj(new LdFlda(target, (IField)member), member.ReturnType), member.ReturnType); | |||
if (member.DeclaringType.IsReferenceType.Value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use member.DeclaringType.IsReferenceType != false
, using Value
without checking HasValue
will lead to exceptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks
18e8d75
to
9837933
Compare
Debug configuration runs into a connectivity issue? |
Thanks for getting the CI to pass. Is this change good for merge? |
Hello? |
Thank you for your contribution! |
This is my first pull request on ILSpy.
@dgrunwald @mmusu3