New J2K: Fix existing test data

This commit is contained in:
Ilya Kirillov
2019-02-03 16:42:16 +03:00
committed by Ilya Kirillov
parent 7e30b9e7f5
commit f8b8d07621
27 changed files with 546 additions and 143 deletions
@@ -0,0 +1,14 @@
class AssignmentAsExpression {
private var field = 0
private var field2 = 0
fun assign(value: Int) {
field = value
val v = field
field2 = value
field = field2
val j: Int
j = 0
val i = j
}
}
@@ -1,6 +1,5 @@
// !forceNotNullTypes: false
// !specifyLocalVariableTypeByDefault: true
import java.util.HashSet;
class Foo {
void foo(HashSet o) {
@@ -0,0 +1,11 @@
// !forceNotNullTypes: false
// !specifyLocalVariableTypeByDefault: true
import java.util.HashSet
internal class Foo {
fun foo(o: HashSet<*>?) {
val o2: HashSet<*>? = o
var foo: Int = 0
foo = o2!!.size
}
}
@@ -0,0 +1,6 @@
internal class Foo {
fun foo(o: HashSet<*>?) {
var foo = 0
foo = o!!.size
}
}