J2K: fixed bug
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
package javaApi;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.lang.Override;
|
||||
import java.lang.String;
|
||||
import java.util.Set;
|
||||
|
||||
public @interface Anon1 {
|
||||
String[] value();
|
||||
@@ -60,3 +58,7 @@ public class Derived extends Base {
|
||||
public class WithVarargConstructor {
|
||||
public WithVarargConstructor(int p, Object... objects) { }
|
||||
}
|
||||
|
||||
class T {
|
||||
public Set<String> set;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import java.util.*;
|
||||
import javaApi.T;
|
||||
|
||||
class A {
|
||||
public Object foo(T t) {
|
||||
return Collections.nCopies(1, t.set);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import java.util.*
|
||||
import javaApi.T
|
||||
import kotlin.Set
|
||||
|
||||
class A {
|
||||
public fun foo(t: T): Any {
|
||||
return Collections.nCopies<Set<String>>(1, t.set)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user