-
Notifications
You must be signed in to change notification settings - Fork 333
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
Unable to map struct from object in another object #615
Comments
Any exception stack trace? |
There is no exception I'm aware of. Just null instead of "A" as result. |
@jankoci91 Which NuGet package version are you using? |
7.3.0 Sorry for missing info. |
@jankoci91 Can you try the latest prerelease package please? |
Done. Same result. Null instead of "A". |
Hello, This is another type of bug #537 . Struct is detected as Record in Mapster/src/Mapster/Utils/ReflectionUtils.cs Line 161 in 04ac871
|
Thank you @jankoci91 and @DocSvartz. I ran a git bisect session using the test posted by @jankoci91 above, and ended up with 773f64a as the supposed culprit. Still trying to piece this together, but now we know which commit that introduced the problem that causes this test to fail. |
@DocSvartz I think you're spot on. IsRecordType() is detecting types as record when it should not. |
@andrerav I managed to make a partial fix. |
Hi! Am I right that failing assert in this test means bug?
In version 6.5.1 it works fine.
The text was updated successfully, but these errors were encountered: