Override/Implement: Use function body template when generating functions with default body
#KT-11807 Fixed
This commit is contained in:
+1
-1
@@ -14,6 +14,6 @@ private class BaseImpl : Base() {
|
||||
}
|
||||
|
||||
override fun toInt(arg: String): Int {
|
||||
throw UnsupportedOperationException()
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,7 +8,7 @@ class Container {
|
||||
|
||||
inner class BaseImpl : Base() {
|
||||
override fun foo(): String {
|
||||
throw UnsupportedOperationException()
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -9,6 +9,6 @@ interface Base {
|
||||
|
||||
class BaseImpl : Base {
|
||||
override fun foo(x: Int): Int {
|
||||
throw UnsupportedOperationException()
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ class BaseImpl : Container.Base {
|
||||
get() = throw UnsupportedOperationException()
|
||||
|
||||
override fun bar(z: Int): String {
|
||||
throw UnsupportedOperationException()
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ sealed class Base {
|
||||
abstract fun foo(): Int
|
||||
class BaseImpl : Base() {
|
||||
override fun foo(): Int {
|
||||
throw UnsupportedOperationException()
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ sealed class Base {
|
||||
|
||||
class BaseImpl1 : Base() {
|
||||
override fun foo(): Int {
|
||||
throw UnsupportedOperationException()
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user