Deprecate extension annotation in favor of Extension
This commit is contained in:
+4
-4
@@ -5,10 +5,10 @@ fun <T, V> Function1<T, V>.minus() = this
|
||||
inline fun <T, V> Function1<T, V>.inc() = <!USAGE_IS_NOT_INLINABLE!>this<!>
|
||||
fun <T, V> Function1<T, V>.dec() = this
|
||||
|
||||
inline fun <T, V> @extension Function2<T, T, V>.plus(){}
|
||||
fun <T, V> @extension Function2<T, T, V>.minus(){}
|
||||
inline fun <T, V> @extension Function2<T, T, V>.inc() = <!USAGE_IS_NOT_INLINABLE!>this<!>
|
||||
fun <T, V> @extension Function2<T, T, V>.dec() = this
|
||||
inline fun <T, V> @Extension Function2<T, T, V>.plus(){}
|
||||
fun <T, V> @Extension Function2<T, T, V>.minus(){}
|
||||
inline fun <T, V> @Extension Function2<T, T, V>.inc() = <!USAGE_IS_NOT_INLINABLE!>this<!>
|
||||
fun <T, V> @Extension Function2<T, T, V>.dec() = this
|
||||
|
||||
inline fun <T, V> inlineFunWithInvoke(s: (p: T) -> V, ext: T.(p: T) -> V) {
|
||||
+s
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ fun <T, U, V> Function2<T, U, V>.not() : Boolean {
|
||||
return !this
|
||||
}
|
||||
|
||||
fun <T, U, V, W> @extension Function3<T, U, V, W>.not() : Boolean {
|
||||
fun <T, U, V, W> @Extension Function3<T, U, V, W>.not() : Boolean {
|
||||
return !this
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user