I am getting this error when I converted Java to Kotlin:
Java
public class HeaderTab extends ExpandableGroup {
private String header;
public HeaderTab(String title, List items) {
super(title, items);
}
}
Kotlin
class HeaderTab(title: String, items: List<*>) : ExpandableGroup<*>(title, items) {
private val header: String? = null
}
Android Studio says this:
projections are not allowed for immediate arguments of a supertype
What do I need to modify here?