KT-11633 Kotlin code editor applies wrong indentation after completing a statement in data class

#KT-11633 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-04-04 13:40:30 +03:00
parent 6b3a691367
commit b32859cf68
8 changed files with 66 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
import java.util.Date
data class Test(
@Deprecated("Other")
val some: Int? = 1,
val other: Date = Date<caret>,
val test: Int
)
// ELEMENT: Date
// TAIL_TEXT: "(...) (java.util)"
@@ -0,0 +1,11 @@
import java.util.Date
data class Test(
@Deprecated("Other")
val some: Int? = 1,
val other: Date = Date(<caret>),
val test: Int
)
// ELEMENT: Date
// TAIL_TEXT: "(...) (java.util)"
@@ -113,6 +113,12 @@ public class BasicCompletionHandlerTestGenerated extends AbstractBasicCompletion
doTest(fileName);
}
@TestMetadata("KT11633.kt")
public void testKT11633() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/KT11633.kt");
doTest(fileName);
}
@TestMetadata("NestedTypeArg.kt")
public void testNestedTypeArg() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/idea-completion/testData/handlers/basic/NestedTypeArg.kt");