Minor: Add test for KT-8295

This commit is contained in:
Alexey Sedunov
2016-01-11 17:31:39 +03:00
parent e7de6400e5
commit 59bacd932a
3 changed files with 10 additions and 0 deletions
@@ -0,0 +1,3 @@
fun foo() {
val m = <selection>Int</selection>.Companion.MAX_VALUE
}
@@ -0,0 +1 @@
Cannot find an expression to introduce
@@ -343,6 +343,12 @@ public class ExtractionTestGenerated extends AbstractExtractionTest {
doIntroduceVariableTest(fileName);
}
@TestMetadata("qualifier.kt")
public void testQualifier() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/introduceVariable/qualifier.kt");
doIntroduceVariableTest(fileName);
}
@TestMetadata("ReplaceOccurence.kt")
public void testReplaceOccurence() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/refactoring/introduceVariable/ReplaceOccurence.kt");