Do not write version requirements for suspend functions

Coroutines are a stable feature since 1.3. Version requirement on
suspend functions, or functions mentioning suspend function types in the
signature, was needed to prevent older compilers from reading metadata
that they can't properly use. It's not needed anymore because a newer
metadata version prevents older compilers from reading any metadata
altogether.

Also, computing isSuspendOrHasSuspendTypesInSignature took ~0.5% of
backend time on compilation of intellij (related to KT-48233).
This commit is contained in:
Alexander Udalov
2021-12-14 21:56:08 +01:00
parent 8863d48595
commit 6807ed6642
6 changed files with 0 additions and 61 deletions
@@ -12,8 +12,6 @@ class Outer {
@RequireKotlin("1.3")
val x = ""
suspend fun s() {}
}
}