New J2K: do not allow field and method declarations to be internal

For internal members new names are generated,
So, references to them from Java will be broken
This commit is contained in:
Ilya Kirillov
2019-10-07 12:32:47 +03:00
parent b30537de0e
commit d0f0b9e355
85 changed files with 185 additions and 191 deletions
+3 -3
View File
@@ -14,9 +14,9 @@ class Target {
var hashMapOfNotImported: Map<ToBeImportedJava, ToBeImportedKotlin> = HashMap()
internal fun acceptKotlinClass(tbi: ToBeImportedKotlin?) {}
fun acceptKotlinClass(tbi: ToBeImportedKotlin?) {}
internal fun acceptJavaClass(tbi: ToBeImportedJava?) {}
fun acceptJavaClass(tbi: ToBeImportedJava?) {}
var ambiguousKotlin: IAmbiguousKotlin = AmbiguousKotlin() // Should not add import in case of 2 declarations in Kotlin
@@ -25,7 +25,7 @@ class Target {
var ambiguousJava: IAmbiguousJava = AmbiguousJava() // Should not add import in case of 2 declarations in Java
internal fun workWithStatics() {
fun workWithStatics() {
val a = TO_BE_IMPORTED_CONST
staticMethod()
}