Code Insight: "Generate toString" action

#KT-10309 Fixed
This commit is contained in:
Alexey Sedunov
2016-01-11 20:49:09 +03:00
parent 77b637e238
commit 618f9f62f6
37 changed files with 889 additions and 66 deletions
@@ -0,0 +1,15 @@
// GENERATOR: SINGLE_TEMPLATE
// GENERATE_SUPER_CALL
open class X {
override fun toString() = super.toString()
}
class A : X() {
fun foo() {
}
<caret>override fun toString(): String{
return "A() ${super.toString()}"
}
}