Java to Kotlin converter: better treatment of nullable expressions
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//file
|
||||
class C {
|
||||
String getString(boolean b) {
|
||||
return b ? "a" : null;
|
||||
}
|
||||
|
||||
int foo() {
|
||||
return getString(true).length();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user