Render flexible types with enhancement as enhanced in IDE (KT-25622)
Main targets for the fix is completion, parameters info, inlay hints and override/implement. Other IDE functions might be affected. #KT-24911 Fixed #KT-25616 Fixed #KT-25622 Fixed
This commit is contained in:
idea/idea-completion/testData/basic/multifile/EnhancementFlexibleTypes/EnhancementFlexibleTypes.java
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
import androidx.annotation.RecentlyNonNull;
|
||||
import androidx.annotation.RecentlyNullable;
|
||||
|
||||
public class EnhancementFlexibleTypes {
|
||||
public static void testNullable(@RecentlyNullable String string) {
|
||||
|
||||
}
|
||||
|
||||
public static void testNotNull(@RecentlyNonNull String string) {
|
||||
|
||||
}
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
fun temp() {
|
||||
EnhancementFlexibleTypes.test<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "testNotNull", tailText:"(string: String)" }
|
||||
// EXIST: { lookupString: "testNullable", tailText:"(string: String?)" }
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package androidx.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.PARAMETER, ElementType.TYPE})
|
||||
public @interface RecentlyNonNull {
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
package androidx.annotation;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Target;
|
||||
import java.lang.reflect.Parameter;
|
||||
|
||||
@Target({ElementType.PARAMETER, ElementType.TYPE})
|
||||
public @interface RecentlyNullable {
|
||||
}
|
||||
Reference in New Issue
Block a user