[Analysis API] add tests for KtSubstitutor
This commit is contained in:
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// SUBSTITUTOR: T->kotlin.collections.List<S>;S->kotlin.Long
|
||||
// SUBSTITUTOR: T -> kotlin.collections.List<S>, S -> kotlin.Long
|
||||
|
||||
fun <T, S> f<caret>oo(x: List<T>, y: Map<T, List<S>>, k: String): T
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// SUBSTITUTOR: T->kotlin.collections.List<S>;S->kotlin.Long
|
||||
// SUBSTITUTOR: T-> kotlin.collections.List<S>, S -> kotlin.Long
|
||||
|
||||
val <T, S> Map<T, S>.val<caret>ue: List<S>
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// SUBSTITUTOR: T->kotlin.collections.List<S>;S->kotlin.Long
|
||||
// SUBSTITUTOR: T -> kotlin.collections.List<S>, S -> kotlin.Long
|
||||
|
||||
fun <T, S> f<caret>oo(x: List<T>, y: Map<T, List<S>>, k: String): T
|
||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
||||
// SUBSTITUTOR: T->kotlin.collections.List<S>;S->kotlin.Long
|
||||
// SUBSTITUTOR: T -> kotlin.collections.List<S>, S -> kotlin.Long
|
||||
|
||||
val <T, S> Map<T, S>.val<caret>ue: List<S>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// SUBSTITUTOR: A -> kotlin.Int, B -> kotlin.String
|
||||
|
||||
fun <A, B> fo<caret>o(): Map<List<A>, B>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
PSI type: Map<List<A>, B>
|
||||
KtType: kotlin.collections.Map<kotlin.collections.List<A>, B>
|
||||
substitutor.substitute: kotlin.collections.Map<kotlin.collections.List<kotlin.Int>, kotlin.String>
|
||||
substitutor.substituteOrNull: kotlin.collections.Map<kotlin.collections.List<kotlin.Int>, kotlin.String>
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// SUBSTITUTOR: A -> kotlin.Int
|
||||
|
||||
fun <A> fo<caret>o(): List<String>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
PSI type: List<String>
|
||||
KtType: kotlin.collections.List<kotlin.String>
|
||||
substitutor.substitute: kotlin.collections.List<kotlin.String>
|
||||
substitutor.substituteOrNull: null
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// SUBSTITUTOR:
|
||||
|
||||
fun <A> fo<caret>o(): List<String>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
PSI type: List<String>
|
||||
KtType: kotlin.collections.List<kotlin.String>
|
||||
substitutor.substitute: kotlin.collections.List<kotlin.String>
|
||||
substitutor.substituteOrNull: null
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// SUBSTITUTOR: A -> B, B -> kotlin.Int
|
||||
|
||||
fun <A, B> fo<caret>o(): Map<List<A>, B>
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
PSI type: Map<List<A>, B>
|
||||
KtType: kotlin.collections.Map<kotlin.collections.List<A>, B>
|
||||
substitutor.substitute: kotlin.collections.Map<kotlin.collections.List<B>, kotlin.Int>
|
||||
substitutor.substituteOrNull: kotlin.collections.Map<kotlin.collections.List<B>, kotlin.Int>
|
||||
Reference in New Issue
Block a user