KT-1064 Override methods should be separated with line breaks
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package something
|
||||
|
||||
trait Some<T> {
|
||||
fun someFoo()
|
||||
fun someOtherFoo() : Int
|
||||
fun someGenericFoo() : T
|
||||
}
|
||||
|
||||
class SomeOther<S> : Some<S> {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package something
|
||||
|
||||
trait Some<T> {
|
||||
fun someFoo()
|
||||
fun someOtherFoo() : Int
|
||||
fun someGenericFoo() : T
|
||||
}
|
||||
|
||||
class SomeOther<S> : Some<S> {
|
||||
|
||||
override fun someFoo() {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun someGenericFoo(): S {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
override fun someOtherFoo(): Int = 0
|
||||
}
|
||||
Reference in New Issue
Block a user