KT-35897: change type for enum constructor for visibility
This commit is contained in:
committed by
Ilya Kirillov
parent
32748ea741
commit
517de44d20
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user