New J2K: handle static imports from Java correctly & do not ignore imports in tests

This commit is contained in:
Ilya Kirillov
2019-05-30 18:49:21 +03:00
parent 879abdafc2
commit 3944a976df
52 changed files with 115 additions and 138 deletions
+5 -2
View File
@@ -1,7 +1,10 @@
// ERROR: Type mismatch: inferred type is DataInputStream but InputStream! was expected
// ERROR: Unresolved reference: close
import java.io.*
import java.lang.Exception
import java.io.BufferedReader
import java.io.DataInputStream
import java.io.File
import java.io.FileInputStream
import java.io.InputStreamReader
internal object FileRead {
@JvmStatic
+1 -1
View File
@@ -1,4 +1,4 @@
import java.util.*
import java.util.ArrayList
internal class A {
var list: List<String> = ArrayList()
@@ -1,7 +0,0 @@
public class JavaClass {
public String v = "";
public void m(String s) {
s.
this.v.
}
}
@@ -1,7 +0,0 @@
// ERROR: The expression cannot be a selector (occur after a dot)
class JavaClass {
var v = ""
fun m(s: String) {
s.this.v.
}
}