How to solve name expected error in intent on kotlin?

Viewed 113

I have "Name expected" error in my Intent() second argument. Are there any missing arguments?

fun setListeners() {
    val intent = Intent(applicationContext, SignUpActivity.class)
}
1 Answers

You should write instead :

val intent = Intent(applicationContext, SignUpActivity::class.java)
Related