Mattia Tommasone
Mattia Tommasone
Just released v1.12.8.
Hi, sorry about this. Any chance you can provide a reproducible test case for me to start looking into it?
Yep, seems like it's an actual bug indeed. A possible fix would be registering a `TypeConstantAdjustment` like @raphw suggested.
Thanks for sending this through! However, it seems like it broke spyk injection in the MockKExtension. Can you PTAL?
Unsigned integer support in Kotlin is [still in beta](https://kotlinlang.org/docs/basic-types.html#beta-status-of-unsigned-integers), so I guess @d35h is right.
This is indeed an unsupported behavior; [MockKExtension](https://github.com/mockk/mockk/blob/284da25e0f6df8b291b356cde14980a8a4529073/mockk/jvm/src/main/kotlin/io/mockk/junit5/MockKExtension.kt) does not take into account parameters annotated with `@InjectMocks`. It should be possible, though, to handle them in the `resolveParameters` method and inject...
I likely won't be able to work on this for a while, since I'd rather prioritize bugfixes; however, I'd gladly review a PR about this.
Yes please, that would be amazing! 🙏
Please provide at least the test function, otherwise there is no way to determine what's going wrong here.
I don't have bandwidth to work on this now, but I'd gladly review a PR about it.