https://kotlinlang.org logo
r

rcgonzalezf

11/14/2017, 5:33 AM
hmmm, I’m having a hard time migrating some code I had in Java: base class:
Copy code
abstract class MyRecyclerViewAdapter<VH extends RecyclerView.ViewHolder, T> extends RecyclerView.Adapter<VH>...
child also abstract:
Copy code
abstract class RecyclerViewFragment<Adapter extends BasicRecyclerViewAdapter>...
in Kotlin this doesn’t compile: parent:
Copy code
abstract class MyRecyclerViewAdapter<VH : RecyclerView.ViewHolder, T>(
Kotlin child:
Copy code
abstract class RecyclerViewFragment<Adapter : BasicRecyclerViewAdapter>