[IDE] Propagate KotlinFacetSettings version and completely drop isReleaseCoroutines flag
Also this commit removes number of tests related to support experimental coroutines
This commit is contained in:
committed by
TeamCityServer
parent
e991c9d476
commit
af94bcebea
-4
@@ -1,4 +0,0 @@
|
||||
package libN
|
||||
|
||||
suspend fun newFoo() {}
|
||||
fun newBuilder(x: suspend () -> Unit) {}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
package libO
|
||||
|
||||
suspend fun oldFoo() {}
|
||||
fun oldBuilder(x: suspend () -> Unit) {}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
import libN.*
|
||||
import libO.*
|
||||
|
||||
suspend fun newMain() {
|
||||
newFoo()
|
||||
<warning descr="[DEPRECATION] 'oldFoo(): Unit' is deprecated. Experimental coroutines support will be dropped in 1.4">oldFoo</warning>()
|
||||
|
||||
// TODO: actually, it's a bug
|
||||
oldMain()
|
||||
}
|
||||
|
||||
fun newMain2() {
|
||||
newBuilder {
|
||||
newMain()
|
||||
}
|
||||
|
||||
<error descr="[ILLEGAL_SUSPEND_FUNCTION_CALL] Suspend function 'oldFoo' should be called only from a coroutine or another suspend function">oldFoo</error>()
|
||||
}
|
||||
-17
@@ -1,17 +0,0 @@
|
||||
import libN.*
|
||||
import libO.*
|
||||
|
||||
suspend fun oldMain() {
|
||||
<error descr="[VERSION_REQUIREMENT_DEPRECATION_ERROR] 'newFoo(): Unit' is only available since Kotlin 1.3 and cannot be used in Kotlin 1.2">newFoo</error>()
|
||||
oldFoo()
|
||||
}
|
||||
|
||||
fun oldMain2() {
|
||||
<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 {
|
||||
oldMain()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user