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:
@@ -4,8 +4,8 @@ import java.io.File
|
||||
import java.util.ArrayList
|
||||
|
||||
|
||||
class JavaClass {
|
||||
internal fun foo(file: File?, target: MutableList<String>?) {
|
||||
internal class JavaClass {
|
||||
fun foo(file: File?, target: MutableList<String>?) {
|
||||
val list = ArrayList<String>()
|
||||
if (file != null) {
|
||||
list.add(file.name)
|
||||
|
||||
Reference in New Issue
Block a user