kotlin
kotlin copied to clipboard
KAPT: Fix error types for receivers and property setters in stubs
When using correct error types and there is a property setter or
receiver for an unknown type then the parameter type would be Object instead
of the error type.
There a still a bunch of cases that aren't handled (suspend functions, DefaultImpls etc) but it seems like a lot of work to fix them.
Ideally the actual type would be attached when parsing instead of trying to figure them out after the fact but that seems to require compiler changes.
Merged with a minor refactoring. Thank you for the contribution!