fix test
This commit is contained in:
@@ -204,7 +204,9 @@ public final class TranslationUtils {
|
||||
return TranslationUtils.getThisQualifier(context);
|
||||
}
|
||||
if (BindingUtils.isOwnedByNamespace(referencedDescriptor)) {
|
||||
return context.getQualifierForDescriptor(referencedDescriptor);
|
||||
if (context.hasQualifierForDescriptor(referencedDescriptor)) {
|
||||
return context.getQualifierForDescriptor(referencedDescriptor);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -18,4 +18,9 @@ public final class ArrayListTest extends JavaClassesTest {
|
||||
public void emptyList() throws Exception {
|
||||
testFooBoxIsTrue("emptyList.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void access() throws Exception {
|
||||
testFooBoxIsTrue("access.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace foo
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
fun box() : Boolean {
|
||||
val a = ArrayList<Int>();
|
||||
a.add(1)
|
||||
a.add(2)
|
||||
return (a.size == 2) && (a.get(1) == 2) && (a.get(0) == 1);
|
||||
}
|
||||
Reference in New Issue
Block a user