Closed nailbrother closed 6 years ago
It works with a @Suppress("UNREACHABLE_CODE")
annotation ! but is there any other solutions ?
Another Solution?
You should remove
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
TODO()
function in kotlin throws NotImplementedError
making lines below this call unreachable. That's the reason behind IDE warning.
It is fixed when the TODO("not implemented") is removed or commented as //TODO("not implemented")
Hi, I get unreachable code for this code ! I'm using kotlin with android studio 3.1 canary 5 and gradle plugin 3.0.1. can anyone tell me why ? Thanks