From deb13344c0fe4fe1d450200d7b1283aacbc63a83 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Wed, 23 May 2012 18:43:47 +0400 Subject: [PATCH] Fix test and add special option for spacing around colon in type definitions --- idea/testData/formatter/Parameters_after_inv.kt | 9 +++++++++ .../formatter/SpaceAroundExtendColon_after_inv.kt | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 idea/testData/formatter/Parameters_after_inv.kt create mode 100644 idea/testData/formatter/SpaceAroundExtendColon_after_inv.kt diff --git a/idea/testData/formatter/Parameters_after_inv.kt b/idea/testData/formatter/Parameters_after_inv.kt new file mode 100644 index 00000000000..276b8d36e73 --- /dev/null +++ b/idea/testData/formatter/Parameters_after_inv.kt @@ -0,0 +1,9 @@ +fun some( + a :Int, + b :String, c :Int, + d :String, e :Int +) { +} + +// SET_FALSE: SPACE_BEFORE_TYPE_COLON +// SET_TRUE: SPACE_AFTER_TYPE_COLON \ No newline at end of file diff --git a/idea/testData/formatter/SpaceAroundExtendColon_after_inv.kt b/idea/testData/formatter/SpaceAroundExtendColon_after_inv.kt new file mode 100644 index 00000000000..87d3b9601c9 --- /dev/null +++ b/idea/testData/formatter/SpaceAroundExtendColon_after_inv.kt @@ -0,0 +1,12 @@ +import java.util.ArrayList +import java.lang.Iterable + +class Some: java.util.ArrayList() { + fun some>(array: Array): Int { + val test: Int = 12 + return test + } +} + +// SET_TRUE: SPACE_BEFORE_EXTEND_COLON +// SET_FALSE: SPACE_AFTER_EXTEND_COLON \ No newline at end of file