Comments (1)
It's not really a bug, but a missing feature. Generics in Kotlin are mostly compile time feature and are naturally erased at runtime. Functional types are also generics. Any functional type is treated as (...) -> Any?
. This is why autoUnit
does not work properly with generics (functions included).
With compiler plugin capabilities it should possible to preserve information about type arguments and improve the way autoUnit
works. I will investigate it. Thank you for reporting the issue!
from mokkery.
Related Issues (16)
- Kotlin 2.0.0 support HOT 8
- NotImplementedError Error thrown during migration HOT 4
- NoSuchElementException thrown during migration HOT 2
- NullPointerException thrown during migration HOT 3
- Provide a short hand way to define every/everySuspend with all arg matchers set to any() HOT 2
- Mocked interface doesn't return the value already set with every HOT 4
- Provide way to return a computed value not just a straight value with returns/returnsSuccess HOT 2
- Mocks incompatible with value classes HOT 3
- Provide a way to block the return from a mocked suspend function HOT 10
- Not able to verify objects by their content HOT 2
- no such method: ContextIndependentParameterRenderer HOT 3
- Is not possible to mock a `data class` HOT 3
- Mocking `abstract`/`open` classes requires default constructor HOT 2
- Wasm-WASI Coroutines support HOT 1
- Kotlin 2.0.20 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mokkery.