Deprecate inlineOption in favor of crossinline modifier

This commit is contained in:
Denis Zharkov
2015-09-09 12:35:19 +03:00
parent 9b8540543f
commit c449c0d080
41 changed files with 68 additions and 40 deletions
+9
View File
@@ -50,8 +50,17 @@ public annotation class inline
@Target(AnnotationTarget.VALUE_PARAMETER)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
@Deprecated("Use 'crossinline' modifier instead of 'inlineOptions(InlineOption.ONLY_LOCAL_RETURN)'")
public annotation class inlineOptions(vararg val value: InlineOption)
/**
* Forbids use of non-local control flow statements within lambdas passed as arguments for this parameter.
*/
@Target(AnnotationTarget.VALUE_PARAMETER)
@Retention(AnnotationRetention.RUNTIME)
@MustBeDocumented
public annotation class crossinline
/**
* Specifies the control flow statements which are allowed to be used for non-local control flow transfer in a lambda
* passed as a parameter to an inline function.