In Java, I can declare this
private List a;
But in Kotlin, he shows an error, he forces me to set the type
private List<String> a
Sometimes I donโt want to provide a type (I donโt need it), but it shows an error in Kotlin For example In Java
public abstract class BaseActivity<T extends ViewDataBinding> extends AppCompatActivity {
What can I write in Kotlin to get the same code in java
source share