AA standalone: introduce multi-module binary dependency test
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
// MODULE: lib
|
||||
// WITH_STDLIB
|
||||
|
||||
// FILE: src/my/collections/Maps.kt
|
||||
@file:kotlin.jvm.JvmMultifileClass
|
||||
@file:kotlin.jvm.JvmName("MapsKt")
|
||||
|
||||
package my.collections
|
||||
|
||||
fun <K, V> myEmptyMap(): Map<K, V> = emptyMap()
|
||||
|
||||
// FILE: src/my/collections/jvm/MapsJVM.kt
|
||||
@file:kotlin.jvm.JvmMultifileClass
|
||||
@file:kotlin.jvm.JvmName("MapsKt")
|
||||
|
||||
package my.collections
|
||||
|
||||
fun <K, V> myMapOf(vararg pairs: Pair<K, V>): Map<K, V> = mapOf(*pairs)
|
||||
|
||||
// MODULE: app
|
||||
// DEPENDENCY: lib Binary
|
||||
// FILE: main.kt
|
||||
|
||||
import my.collections.*
|
||||
|
||||
fun test() {
|
||||
myMap<caret>Of<Int, String>(
|
||||
2 to "2",
|
||||
4 to "4",
|
||||
)
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
PsiMethod:myMapOf(vararg pairs: PsiType:Pair<? extends K, ? extends V>...): PsiType:Map<K, V>
|
||||
Reference in New Issue
Block a user