Deprecate extension annotation in favor of Extension
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
package somePackage
|
||||
|
||||
class ExcludedClass
|
||||
|
||||
class ExtraClass
|
||||
// Such strange name here needed to make completion prefix not intersecting with kotlin.Extension
|
||||
class ExctraClass
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
val x = Ex<caret>
|
||||
val x = Exc<caret>
|
||||
|
||||
// ABSENT: ExcludedClass
|
||||
// EXIST: ExtraClass
|
||||
// EXIST: ExctraClass
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
val x = Ex<caret>
|
||||
val x = Exc<caret>
|
||||
|
||||
// ABSENT: ExcludedClass
|
||||
// EXIST: ExtraClass
|
||||
// EXIST: ExctraClass
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
package somePackage;
|
||||
|
||||
// Such strange name here needed to make completion prefix not intersecting with kotlin.Extension
|
||||
public class ExctraClass {
|
||||
|
||||
}
|
||||
Vendored
-5
@@ -1,5 +0,0 @@
|
||||
package somePackage;
|
||||
|
||||
public class ExtraClass {
|
||||
|
||||
}
|
||||
+1
-1
@@ -6,7 +6,7 @@ fun (() -> Unit)?.helloFun1() {
|
||||
fun Function0<Unit>.helloFun2() {
|
||||
}
|
||||
|
||||
fun @extension Function1<String, Unit>.helloFun3() {
|
||||
fun @Extension Function1<String, Unit>.helloFun3() {
|
||||
}
|
||||
|
||||
fun Function1<String, Unit>.helloFun4() {
|
||||
|
||||
+2
-2
@@ -6,10 +6,10 @@ fun (String.() -> Unit)?.helloFun1() {
|
||||
fun Function0<Unit>.helloFun2() {
|
||||
}
|
||||
|
||||
fun @extension Function1<String, Unit>.helloFun3() {
|
||||
fun @Extension Function1<String, Unit>.helloFun3() {
|
||||
}
|
||||
|
||||
fun @extension Function1<Int, Unit>.helloFun4() {
|
||||
fun @Extension Function1<Int, Unit>.helloFun4() {
|
||||
}
|
||||
|
||||
fun Function1<String, Unit>.helloFun5() {
|
||||
|
||||
Reference in New Issue
Block a user