diff --git a/idea/testData/scratch/spacesAtLineStart.comp.after b/idea/testData/scratch/spacesAtLineStart.comp.after new file mode 100644 index 00000000000..905e34d87cb --- /dev/null +++ b/idea/testData/scratch/spacesAtLineStart.comp.after @@ -0,0 +1,3 @@ +val a = 1 // RESULT: val a: Int +a // RESULT: 1 + a // RESULT: 1 diff --git a/idea/testData/scratch/spacesAtLineStart.kts b/idea/testData/scratch/spacesAtLineStart.kts new file mode 100644 index 00000000000..d3d7538a385 --- /dev/null +++ b/idea/testData/scratch/spacesAtLineStart.kts @@ -0,0 +1,3 @@ +val a = 1 +a + a \ No newline at end of file diff --git a/idea/testData/scratch/spacesAtLineStart.repl.after b/idea/testData/scratch/spacesAtLineStart.repl.after new file mode 100644 index 00000000000..a945cc8c9c2 --- /dev/null +++ b/idea/testData/scratch/spacesAtLineStart.repl.after @@ -0,0 +1,3 @@ +val a = 1 +a // RESULT: 1 + a // RESULT: 1 diff --git a/idea/tests/org/jetbrains/kotlin/idea/scratch/ScratchRunActionTestGenerated.java b/idea/tests/org/jetbrains/kotlin/idea/scratch/ScratchRunActionTestGenerated.java index 5615433d819..9ce0e1d1890 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/scratch/ScratchRunActionTestGenerated.java +++ b/idea/tests/org/jetbrains/kotlin/idea/scratch/ScratchRunActionTestGenerated.java @@ -56,6 +56,11 @@ public class ScratchRunActionTestGenerated extends AbstractScratchRunActionTest runTest("idea/testData/scratch/simpleFun.kts"); } + @TestMetadata("spacesAtLineStart.kts") + public void testSpacesAtLineStart() throws Exception { + runTest("idea/testData/scratch/spacesAtLineStart.kts"); + } + @TestMetadata("stdlibFun.kts") public void testStdlibFun() throws Exception { runTest("idea/testData/scratch/stdlibFun.kts"); @@ -129,6 +134,11 @@ public class ScratchRunActionTestGenerated extends AbstractScratchRunActionTest runTest("idea/testData/scratch/simpleFun.kts"); } + @TestMetadata("spacesAtLineStart.kts") + public void testSpacesAtLineStart() throws Exception { + runTest("idea/testData/scratch/spacesAtLineStart.kts"); + } + @TestMetadata("stdlibFun.kts") public void testStdlibFun() throws Exception { runTest("idea/testData/scratch/stdlibFun.kts");