Create from usage: make new member function/property private by default
#KT-6689 Fixed
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y[""]
|
||||
}
|
||||
|
||||
fun get(s: String): T {
|
||||
private fun get(s: String): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
|
||||
fun get(s: String, w: T): T {
|
||||
private fun get(s: String, w: T): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ class Foo<T> {
|
||||
bar(z)
|
||||
}
|
||||
|
||||
fun <V> get(s: String, w: ArrayList<V>): String {
|
||||
private fun <V> get(s: String, w: ArrayList<V>): String {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class Foo<T> {
|
||||
val z: Iterable<S> = y[""]
|
||||
}
|
||||
|
||||
fun get(s: String): T {
|
||||
private fun get(s: String): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class Foo<T, S: Iterable<T>> {
|
||||
val z: U = y[""]
|
||||
}
|
||||
|
||||
fun get(s: String): T {
|
||||
private fun get(s: String): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
|
||||
fun <V> get(s: String, w: Iterable<V>): T {
|
||||
private fun <V> get(s: String, w: Iterable<V>): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w, v]
|
||||
}
|
||||
|
||||
fun <V, T1> get(s: String, w: ArrayList<V>, v: T1): T {
|
||||
private fun <V, T1> get(s: String, w: ArrayList<V>, v: T1): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ class Foo<T> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
|
||||
fun get(s: String, w: T): T {
|
||||
private fun get(s: String, w: T): T {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ class Foo<S> {
|
||||
val z: Iterable<T> = y["", w]
|
||||
}
|
||||
|
||||
fun get(s: String, w: S): S {
|
||||
private fun get(s: String, w: S): S {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user