kotlin icon indicating copy to clipboard operation
kotlin copied to clipboard

KAPT: Fix error types for receivers and property setters in stubs

Open ansman opened this issue 3 years ago • 1 comments

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.

This fixes KT-46965 and KT-46966.

ansman avatar Sep 16 '22 21:09 ansman

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.

ansman avatar Sep 18 '22 12:09 ansman

Merged with a minor refactoring. Thank you for the contribution!

udalov avatar Jan 12 '23 01:01 udalov