[FIR2IR] Add problematic test with in/out clash during approximation
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// FILE: Utils.java
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Utils {
|
||||
public static List<? super Object> toList(final V8Array array) {
|
||||
List<? super Object> list = new ArrayList<Object>();
|
||||
list.add("OK");
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: v8arrayToList.kt
|
||||
|
||||
class V8Array
|
||||
|
||||
fun box(): String {
|
||||
val array = V8Array()
|
||||
val list = Utils.toList(array) as List<String>
|
||||
return list[0]
|
||||
}
|
||||
Reference in New Issue
Block a user