Java to Kotlin converter: no more 2 conversion modes for each test, just a few tests to test non-standard settings

This commit is contained in:
Valentin Kipyatkov
2014-06-03 22:12:45 +04:00
parent 57d118e13d
commit 6b11a5b3d9
597 changed files with 936 additions and 5558 deletions
@@ -1 +0,0 @@
x = x and 2
@@ -1 +0,0 @@
x = 2
@@ -1 +0,0 @@
x /= 2
@@ -1 +0,0 @@
x -= 2
@@ -1 +0,0 @@
x *= 2
@@ -0,0 +1,12 @@
//file
// !forceNotNullTypes: false
// !specifyLocalVariableTypeByDefault: true
import java.util.BitSet;
class Foo {
void foo(BitSet o) {
BitSet o2 = o;
int foo = 0;
foo = o2.size();
}
}
@@ -0,0 +1,11 @@
// !forceNotNullTypes: false
// !specifyLocalVariableTypeByDefault: true
import java.util.BitSet
class Foo() {
fun foo(o: BitSet?) {
val o2: BitSet? = o
val foo: Int = 0
foo = o2?.size()!!
}
}
@@ -1,9 +0,0 @@
import java.util.BitSet
class Foo() {
fun foo(o: BitSet) {
val o2 = o
val foo = 0
foo = o2.size()
}
}
@@ -1,9 +1,9 @@
import java.util.BitSet
open class Foo() {
open fun foo(o: BitSet?) {
var o2: BitSet? = o
var foo: Int = 0
foo = o2?.size()!!
class Foo() {
fun foo(o: BitSet) {
val o2 = o
val foo = 0
foo = o2.size()
}
}
@@ -1 +0,0 @@
x = x or 2
@@ -1 +0,0 @@
x += 2
@@ -1 +0,0 @@
x %= 2
@@ -1 +0,0 @@
x = x shl 2
@@ -1 +0,0 @@
x = x shr 2
@@ -1 +0,0 @@
i = 1
@@ -1 +0,0 @@
x = x ushr 2
@@ -1 +0,0 @@
x = x xor 2