Java to Kotlin convertor: generating of val/var constructor parameters when possible

This commit is contained in:
Valentin Kipyatkov
2014-06-02 22:03:33 +04:00
parent 846f2d9954
commit abfd2d68b9
90 changed files with 820 additions and 734 deletions
@@ -0,0 +1,11 @@
//file
class C {
public int p;
public C(int p) {
this.p = 0
if (p > 0) {
this.p = p
}
}
}