Error:(43, 31) Type inference failed: Not enough information to infer parameter T in fun <T : View!>
Try something like: val recyclerView = findViewById<RecyclerView>(R.id.recycler_view)
You can use Kotlin Android Extensions too for that. Check the doc here. With it, you can call recycler_view directly in your code.
Or this: val recycler_view: RecyclerView = findViewById(R.id.recycler_view)
|