Generate 'toString()': Permit for data classes
#KT-14122 Fixed
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
// NOT_APPLICABLE
|
||||
data class A<caret>(val n: Int)
|
||||
@@ -0,0 +1,2 @@
|
||||
// GENERATOR: MULTIPLE_TEMPLATES
|
||||
data class A<caret>(val n: Int, val s: String?)
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// GENERATOR: MULTIPLE_TEMPLATES
|
||||
data class A(val n: Int, val s: String?) {
|
||||
override fun toString(): String {
|
||||
return "A(" +
|
||||
"n=$n," +
|
||||
"s=$s" +
|
||||
")"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
// GENERATOR: SINGLE_TEMPLATE
|
||||
data class A<caret>(val n: Int, val s: String?)
|
||||
@@ -0,0 +1,6 @@
|
||||
// GENERATOR: SINGLE_TEMPLATE
|
||||
data class A(val n: Int, val s: String?) {
|
||||
override fun toString(): String {
|
||||
return "A(n=$n, s=$s)"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user