Fixed 'Implement members implement functions with no curly braces - not convenient'
#KT-1317 fixed
This commit is contained in:
@@ -14,5 +14,7 @@ class SomeOther<S> : Some<S> {
|
||||
override fun someGenericFoo(): S {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
override fun someOtherFoo(): Int = 0
|
||||
override fun someOtherFoo(): Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
@@ -4,5 +4,7 @@ trait G<T> {
|
||||
|
||||
class GC() : G<Int> {
|
||||
|
||||
override fun foo(t: Int): Int = 0
|
||||
override fun foo(t: Int): Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,5 +2,7 @@ import foo.Intf
|
||||
|
||||
class Impl(): Intf {
|
||||
|
||||
override fun getFooBar(): String? = null
|
||||
override fun getFooBar(): String? {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,5 +4,7 @@ trait Some {
|
||||
|
||||
class SomeOther : Some {
|
||||
|
||||
override fun foo(some: Int?): Int = 0
|
||||
override fun foo(some: Int?): Int {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user