KT-1064 Override methods should be separated with line breaks

This commit is contained in:
Nikolay Krasko
2012-01-19 13:35:04 +04:00
parent 560e0ad604
commit 792f2c18ee
5 changed files with 80 additions and 5 deletions
@@ -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
}