KT-11633 Kotlin code editor applies wrong indentation after completing a statement in data class
#KT-11633 Fixed
This commit is contained in:
@@ -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)"
|
||||
+6
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user