Annotate inline use and useLines with RequireKotlin

Compiler version 1.2 is required to use 'use' and inline functions from stdlib that call it.
This commit is contained in:
Ilya Gorbunov
2017-10-12 08:10:45 +03:00
parent cc150ca832
commit 863727955f
4 changed files with 5 additions and 0 deletions
@@ -72,5 +72,6 @@ private fun getJavaVersion(): Int {
* The function usages are validated to have literal argument values.
*/
@PublishedApi
@RequireKotlin("1.2", versionKind = RequireKotlinVersionKind.COMPILER_VERSION)
internal fun apiVersionIsAtLeast(major: Int, minor: Int, patch: Int) =
KotlinVersion.CURRENT.isAtLeast(major, minor, patch)