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