Name suggester: Respect type parameter name when suggesting name for

variables based on that type parameter
This commit is contained in:
Alexey Sedunov
2014-10-31 15:45:37 +03:00
parent f81c2d5ff7
commit 7123ca8ea0
33 changed files with 35 additions and 35 deletions
@@ -1,7 +1,7 @@
// "Create function 'foo'" "true"
class A<T>(val n: T) {
fun foo(arg: T): A<T> {
fun foo(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +1,7 @@
// "Create function 'compareTo'" "true"
class A<T>(val n: T) {
fun compareTo(arg: T): Int {
fun compareTo(t: T): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +1,7 @@
// "Create function 'contains'" "true"
class A<T>(val n: T) {
fun contains(arg: T): Boolean {
fun contains(t: T): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +1,7 @@
// "Create function 'compareTo'" "true"
class A<T>(val n: T) {
fun compareTo(arg: T): Int {
fun compareTo(t: T): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +1,7 @@
// "Create function 'contains'" "true"
class A<T>(val n: T) {
fun contains(arg: T): Boolean {
fun contains(t: T): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +1,7 @@
// "Create function 'plusAssign'" "true"
class A<T>(val n: T) {
fun plusAssign(arg: T) {
fun plusAssign(t: T) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -3,7 +3,7 @@
class A<T>(val n: T) {
fun plus(): A<T> = throw Exception()
fun plus(arg: T): A<T> {
fun plus(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +1,7 @@
// "Create function 'plus'" "true"
class A<T>(val n: T) {
fun plus(arg: T): A<T> {
fun plus(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -3,7 +3,7 @@
class A<T>(val n: T) {
fun plus(i: Int, s: String): A<T> = throw Exception()
fun plus(arg: T): A<T> {
fun plus(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +1,7 @@
// "Create function 'plus'" "true"
class A<T>(val n: T) {
fun plus(arg: T): A<T> {
fun plus(t: T): A<T> {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +1,7 @@
// "Create function 'contains'" "true"
class A<T>(val n: T) {
fun contains(arg: T): Boolean {
fun contains(t: T): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
@@ -1,7 +1,7 @@
// "Create function 'contains'" "true"
class A<T>(val n: T) {
fun contains(arg: T): Boolean {
fun contains(t: T): Boolean {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}