svenjacobs
08/15/2017, 11:36 AMval postalCodeChangeListener = object : TextWatcher by EmptyTextWatcher { ... }
where EmptyTextWatcher
is just an implementation of the TextWatcher
interface with empty methods. Kotlin 1.1.4 generates private final android.text.TextWatcher<app.api.models.shop.customer.ApiAddress> postalCodeChangeListener = null;
. So a type argument is added to the TextWatcher
interface however the interface doesn’t have a type argument.