KT-35897: change type for enum constructor for visibility

This commit is contained in:
PetelimovaNadezhda
2020-04-04 12:40:04 +03:00
committed by Ilya Kirillov
parent 32748ea741
commit 517de44d20
4 changed files with 32 additions and 1 deletions
@@ -0,0 +1,13 @@
public enum JavaEnum {
A("a"), B;
JavaEnum(String x) {
this.x = x;
}
JavaEnum() {
this.x = "default";
}
protected String x;
}
@@ -0,0 +1,13 @@
enum class JavaEnum {
A("a"), B;
constructor(x: String) {
this.x = x
}
constructor() {
x = "default"
}
protected var x: String
}