[FIR-TEST] Move analysis tests to separate module
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// FILE: Utils.java
|
||||
|
||||
public class Utils {
|
||||
public static String[] getStrings() {
|
||||
return new String[0];
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: Main.kt
|
||||
|
||||
fun <T> myListOf(vararg elements: T): List<T> = null!!
|
||||
fun <T> myListOf(element: T): List<T> = null!!
|
||||
|
||||
fun takeStrings(list: List<String>) {}
|
||||
|
||||
fun getStrings(): Array<String> = null!!
|
||||
|
||||
fun testFromKotlin() {
|
||||
val values = getStrings()
|
||||
val list = myListOf(*values)
|
||||
takeStrings(list)
|
||||
}
|
||||
|
||||
fun testFromJava() {
|
||||
val values = Utils.getStrings()
|
||||
val list = myListOf(*values)
|
||||
takeStrings(list)
|
||||
}
|
||||
Reference in New Issue
Block a user