[FIR] Fix kotlin version check in annotations

@RequireKotlin has more than one string parameter, so you need to check
 'version' only
This commit is contained in:
Andrey Zinovyev
2021-05-27 13:12:50 +03:00
committed by teamcityserver
parent 3a22761d02
commit ebf6ce133b
8 changed files with 122 additions and 35 deletions
@@ -0,0 +1,12 @@
package kotlin.io
import kotlin.internal.*
<!ILLEGAL_KOTLIN_VERSION_STRING_VALUE!>@<!INVISIBLE_MEMBER, INVISIBLE_REFERENCE!>RequireKotlin<!>("1.x")<!>
class IllegalVersion()
@<!INVISIBLE_MEMBER, INVISIBLE_REFERENCE!>RequireKotlin<!>("1.2")
class LegalMinimum()
@<!INVISIBLE_MEMBER, INVISIBLE_REFERENCE!>RequireKotlin<!>("1.2", versionKind = <!INVISIBLE_REFERENCE!>RequireKotlinVersionKind<!>.<!INVISIBLE_MEMBER!>COMPILER_VERSION<!>, message = "Requires newer compiler version to be inlined correctly.")
class LegalStdLib()