J2K: do not produce redundant "internal" words for members in an internal class

This commit is contained in:
Valentin Kipyatkov
2015-09-16 21:50:01 +03:00
parent 367b32c309
commit 0cc2158ec1
260 changed files with 459 additions and 448 deletions
+5 -5
View File
@@ -1,22 +1,22 @@
import java.util.ArrayList
internal class C<T> {
internal fun foo1(src: Collection<T>) {
fun foo1(src: Collection<T>) {
val t = src.iterator().next()
}
internal fun foo2(src: ArrayList<out T>) {
fun foo2(src: ArrayList<out T>) {
val t = src.iterator().next()
}
internal fun foo3(dst: MutableCollection<in T>, t: T) {
fun foo3(dst: MutableCollection<in T>, t: T) {
dst.add(t)
}
internal fun foo4(comparable: Comparable<T>, t: T): Int {
fun foo4(comparable: Comparable<T>, t: T): Int {
return comparable.compareTo(t)
}
internal fun foo5(w: Collection<*>) {
fun foo5(w: Collection<*>) {
}
}