Uast: support extendsList for reified types (KT-38173)
This commit is contained in:
+3
-1
@@ -1,5 +1,6 @@
|
||||
inline fun <T> function1(t: T, i: Int, s: String) {}
|
||||
inline fun <T> function2(t: T, i: Int, s: String): T = t
|
||||
inline fun <T : CharSequence> function2CharSequence(t: T, i: Int, s: String): T = t
|
||||
inline fun <reified T> function3(t: T, i: Int, s: String) {}
|
||||
inline fun <reified T> function4(t: T, i: Int, s: String): T = t
|
||||
inline fun <reified T> function5(t: T, i: Int, s: String): Int = 42
|
||||
@@ -8,4 +9,5 @@ inline fun <reified T> function7(t: T, i: Int, s: String): T = t
|
||||
private inline fun <reified T> function8(t: T, i: Int, s: String): T = t
|
||||
internal inline fun <reified T> function9(t: T, i: Int, s: String): T = t
|
||||
public inline fun <reified T> function10(t: T, i: Int, s: String): T = t
|
||||
inline fun <reified T> T.function11(t: T, i: Int, s: String): T = t
|
||||
inline fun <reified T> T.function11(t: T, i: Int, s: String): T = t
|
||||
inline fun <reified T : CharSequence> T.function11CharSequence(t: T, i: Int, s: String): T = t
|
||||
@@ -18,6 +18,16 @@ UFile (package = )
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = t)
|
||||
UMethod (name = function2CharSequence)
|
||||
UParameter (name = t)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = s)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = t)
|
||||
UMethod (name = function3)
|
||||
UParameter (name = t)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.Nullable)
|
||||
@@ -110,3 +120,15 @@ UFile (package = )
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = t)
|
||||
UMethod (name = function11CharSequence)
|
||||
UParameter (name = $this$function11CharSequence)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = t)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = i)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UParameter (name = s)
|
||||
UAnnotation (fqName = org.jetbrains.annotations.NotNull)
|
||||
UBlockExpression
|
||||
UReturnExpression
|
||||
USimpleNameReferenceExpression (identifier = t)
|
||||
|
||||
@@ -4,6 +4,9 @@ public final class ReifiedReturnTypeKt {
|
||||
public static final fun function2(@org.jetbrains.annotations.Nullable t: T, @org.jetbrains.annotations.NotNull i: int, @org.jetbrains.annotations.NotNull s: java.lang.String) : T {
|
||||
return t
|
||||
}
|
||||
public static final fun function2CharSequence(@org.jetbrains.annotations.NotNull t: T, @org.jetbrains.annotations.NotNull i: int, @org.jetbrains.annotations.NotNull s: java.lang.String) : T {
|
||||
return t
|
||||
}
|
||||
static fun function3(@org.jetbrains.annotations.Nullable t: T, @org.jetbrains.annotations.NotNull i: int, @org.jetbrains.annotations.NotNull s: java.lang.String) : void {
|
||||
}
|
||||
static fun function4(@org.jetbrains.annotations.Nullable t: T, @org.jetbrains.annotations.NotNull i: int, @org.jetbrains.annotations.NotNull s: java.lang.String) : T {
|
||||
@@ -30,4 +33,7 @@ public final class ReifiedReturnTypeKt {
|
||||
static fun function11(@org.jetbrains.annotations.Nullable $this$function11: T, @org.jetbrains.annotations.Nullable t: T, @org.jetbrains.annotations.NotNull i: int, @org.jetbrains.annotations.NotNull s: java.lang.String) : T {
|
||||
return t
|
||||
}
|
||||
static fun function11CharSequence(@org.jetbrains.annotations.NotNull $this$function11CharSequence: T, @org.jetbrains.annotations.NotNull t: T, @org.jetbrains.annotations.NotNull i: int, @org.jetbrains.annotations.NotNull s: java.lang.String) : T {
|
||||
return t
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user