Call super throws "super is not an expression"

I took up for learning implementing MVVM from Google Guide here:

https://codelabs.developers.google.com/codelabs/android-room-with-a-view/#8 (posted link especially to page I'm interested in).

Since I understood implementing it in Java, I decided to switch to Kotlin.

While initializing constructor in class extending AndroidViewModel I need to call super and it throws me following error:

"super' is not an expression it can only be used on the left-hand side

of a dot ('.')"

As I googled and found similar topic but I haven't understood it at all so I didn't solve my problem.

This my code for ViewModel...

Read More »

By: StackOverFlow - 6 days ago

Related Posts