Java to Kotlin converter: correct code generated for accessing nullable variables

This commit is contained in:
Valentin Kipyatkov
2014-06-06 21:51:28 +04:00
parent 0695f6b3d7
commit 14efefedd6
9 changed files with 40 additions and 20 deletions
@@ -0,0 +1,6 @@
//method
int foo(String s, boolean b) {
if (s == null) System.out.println("null")
if (b) return s.length();
return 10;
}