Override/Implement: Use function body template when generating functions with default body

#KT-11807 Fixed
This commit is contained in:
Alexey Sedunov
2016-04-18 16:33:17 +03:00
parent df07554764
commit 1635018fe7
60 changed files with 165 additions and 116 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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.
}
}
}