Revert "Do not write version requirements for suspend functions"

This reverts commit 6807ed6642.

The reason is that Kotlin compilers until and including version 1.6.10
have code that detects obsolete coroutines via these version
requirements (see `versionAndReleaseCoroutinesMismatch`). Since Kotlin
1.6.10 can read metadata of version 1.7, the earliest we can drop these
version requirements is Kotlin 1.8.0.
This commit is contained in:
Alexander Udalov
2021-12-21 20:06:07 +01:00
parent 58dfe3d804
commit 7771e5914d
6 changed files with 61 additions and 0 deletions
@@ -12,6 +12,8 @@ class Outer {
@RequireKotlin("1.3")
val x = ""
suspend fun s() {}
}
}