Java to Kotlin convertor: generating of val/var constructor parameters when possible
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//file
|
||||
class C {
|
||||
public int p;
|
||||
|
||||
public C(int p) {
|
||||
this.p = 0
|
||||
if (p > 0) {
|
||||
this.p = p
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user