Java to Kotlin converter: even more smartness about nullability
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
//method
|
||||
// !specifyLocalVariableTypeByDefault: true
|
||||
void foo(boolean b) {
|
||||
String s = "abc";
|
||||
if (b) {
|
||||
s = null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user