Hello! This - <https://gist.github.com/andredasilv...
# announcements
a
Hello! This - https://gist.github.com/andredasilvapinto/a63468acd56498fd6f17bcad2905d41b - compiles but when I run it produces a
java.lang.VerifyError: Bad type on operand stack
(full error on the gist comment). Why is that?
k
Looks like a bug with coroutines bytecode and inlining. You should file a bug report kotl.in/issue
You can use the member schedule directly though. Slightly more verbose, but works:
Copy code
Timer(true).schedule(object: TimerTask() {
    override fun run() {
        launch {
            runSuspended("hello")
        }
    }
}, 300)
a