KT-7918 J2K: don't generate jvmOverloads on private declarations

#KT-7918 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-06-30 13:55:32 +03:00
parent 2999aaf974
commit c75a18291c
6 changed files with 30 additions and 2 deletions
@@ -1,4 +1,4 @@
class C jvmOverloads private constructor(arg1: Int, arg2: Int, arg3: Int = 0) {
class C private constructor(arg1: Int, arg2: Int, arg3: Int = 0) {
public constructor(arg1: Int) : this(arg1, 0, 0) {
}
+10
View File
@@ -0,0 +1,10 @@
class A {
private int bar(String s) {
System.out.println("s = " + s);
return 0;
}
private int bar() {
return bar(null);
}
}
+6
View File
@@ -0,0 +1,6 @@
class A {
private fun bar(s: String? = null): Int {
println("s = " + s!!)
return 0
}
}