Expression cannot be a selector (occur after a dot) in Kotlin
You have to write it like this:
Toast.makeText(applicationContext, "Clicked", Toast.LENGTH_SHORT).show()
Toast.makeText(this@MainActivity, "Clicked", Toast. LENGTH_SHORT).show()
This is the right way to do in Kotlin