One more test for import nested classes setting
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class A {
|
||||
public class B {
|
||||
public B(String s) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// IMPORT_NESTED_CLASSES: true
|
||||
|
||||
fun bar(s: String) {
|
||||
<selection>val t: A.B = A().B(s)</selection>
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// IMPORT_NESTED_CLASSES: true
|
||||
|
||||
import A.B
|
||||
|
||||
fun bar(s: String) {
|
||||
val t: B = A().B(s)
|
||||
}
|
||||
@@ -217,6 +217,12 @@ public class ShortenRefsTestGenerated extends AbstractShortenRefsTest {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/shortenRefs/java"), Pattern.compile("^([^\\.]+)\\.kt$"), true);
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassImport.kt")
|
||||
public void testInnerClassImport() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/shortenRefs/java/innerClassImport.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("innerClassNoImports.kt")
|
||||
public void testInnerClassNoImports() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("idea/testData/shortenRefs/java/innerClassNoImports.kt");
|
||||
|
||||
Reference in New Issue
Block a user