Created
December 31, 2017 18:55
-
-
Save andredasilvapinto/a63468acd56498fd6f17bcad2905d41b to your computer and use it in GitHub Desktop.
java.lang.VerifyError: Bad type on operand stack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlinx.coroutines.experimental.delay | |
import kotlinx.coroutines.experimental.launch | |
import kotlinx.coroutines.experimental.runBlocking | |
import java.util.* | |
import kotlin.concurrent.schedule | |
class Test { | |
fun scheduleTimeout() { | |
Timer(true).schedule(300) { | |
launch { | |
runSuspended("hello") | |
} | |
} | |
} | |
suspend fun runSuspended(txt: String) = println(txt) | |
} | |
fun main(args: Array<String>) { | |
Test().scheduleTimeout() | |
runBlocking { | |
delay(10000) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiles successfully with Kotlin 1.2.10 but then fails with a RuntimeException: