Formatter doesn't handle space before angle bracket in method definition (KT-11961)

#KT-11961 Fixed
This commit is contained in:
Nikolay Krasko
2016-04-19 14:03:34 +03:00
parent 1baed30ef6
commit f2a17bc4c2
3 changed files with 35 additions and 14 deletions
+17
View File
@@ -58,6 +58,12 @@ public var varWithAccessors2: Int
/**/
}
}
//-----------------------
val <T> some1 = 1
val <T> some2 = 1
val
<T> some3 = 1
//-----------------------
annotation class A1
@@ -94,4 +100,15 @@ public object FooObject1 {
public
object FooObject2 {
}
fun <T> foo_1() {
}
fun <T> foo_2() {
}
fun
<T>
foo_3() {
}
+14 -1
View File
@@ -57,6 +57,12 @@ public var varWithAccessors2: Int
/**/
}
}
//-----------------------
val <T> some1 = 1
val<T> some2 = 1
val
<T> some3 = 1
//-----------------------
annotation class A1
annotation class A2
@@ -94,4 +100,11 @@ public object FooObject1 {
public
object FooObject2 {
}
}
fun<T> foo_1() {}
fun <T> foo_2() {}
fun
<T>
foo_3() {}