Minor. Fix test.

This commit is contained in:
Ilmir Usmanov
2018-07-30 16:02:57 +03:00
parent acd5b62148
commit 4b03db771a
2 changed files with 4 additions and 20 deletions
@@ -7,8 +7,8 @@ suspend fun oldMain() {
}
fun oldMain2() {
<error descr="[VERSION_REQUIREMENT_DEPRECATION_ERROR] 'newBuilder((Continuation<Unit>) -> Any?): Unit' is only available since Kotlin 1.3 and cannot be used in Kotlin 1.2">newBuilder</error> {
<error descr="[ILLEGAL_SUSPEND_FUNCTION_CALL] Suspend function 'oldMain' should be called only from a coroutine or another suspend function">oldMain</error>()
<error descr="[VERSION_REQUIREMENT_DEPRECATION_ERROR] 'newBuilder(suspend () -> Unit): Unit' is only available since Kotlin 1.3 and cannot be used in Kotlin 1.2">newBuilder</error> {
oldMain()
}
oldBuilder {