KT-1378 Code formatting: spaces around ':'
Changed test data to match actual behavior of the "override methods" feature.
This commit is contained in:
@@ -11,10 +11,10 @@ class SomeOther<S> : Some<S> {
|
||||
override fun someFoo() {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
override fun someGenericFoo(): S {
|
||||
override fun someGenericFoo() : S {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
override fun someOtherFoo(): Int {
|
||||
override fun someOtherFoo() : Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ trait G<T> {
|
||||
|
||||
class GC() : G<Int> {
|
||||
|
||||
override fun foo(t: Int): Int {
|
||||
override fun foo(t : Int) : Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import foo.Intf
|
||||
|
||||
class Impl(): Intf {
|
||||
|
||||
override fun getFooBar(): String? {
|
||||
override fun getFooBar() : String? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import foo.Intf
|
||||
|
||||
class Impl(): Intf {
|
||||
|
||||
override fun fooBar(i: Int, s: Array<String?>?, foo: Any?) {
|
||||
override fun fooBar(i : Int, s : Array<String?>?, foo : Any?) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,5 +4,5 @@ trait T {
|
||||
|
||||
class GC() : T {
|
||||
|
||||
override val v: Int = 0
|
||||
override val v : Int = 0
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ trait G<T> {
|
||||
|
||||
class GC<T>() : G<T> {
|
||||
|
||||
override fun foo(t: T): T {
|
||||
override fun foo(t : T) : T {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@ trait Some {
|
||||
|
||||
class SomeOther : Some {
|
||||
|
||||
override fun foo(some: Int?): Int {
|
||||
override fun foo(some : Int?) : Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user