Java to Kotlin converter: fixed crash in converter + more correct auto insertion of !!
#KT-851 Fixed
This commit is contained in:
@@ -6,6 +6,6 @@ class Test() {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val i = getInteger(10)!!
|
||||
val i = getInteger(10)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
//file
|
||||
class Test {
|
||||
void putInt(int i) {}
|
||||
|
||||
void test() {
|
||||
Byte b = 10;
|
||||
putInt(b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class Test() {
|
||||
fun putInt(i: Int) {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val b = 10
|
||||
putInt(b.toInt())
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,6 @@ import kotlinApi.*
|
||||
|
||||
class C() {
|
||||
fun foo() {
|
||||
val v = globalGenericFunction<Int>(1)!!
|
||||
val v = globalGenericFunction<Int>(1)
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
fun foo(i: Int) {
|
||||
var i1 = i!!
|
||||
var i1 = i
|
||||
i1++
|
||||
}
|
||||
Reference in New Issue
Block a user