Generate private constructors for enums in coverter
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
// ERROR: Cannot access 'p': it is 'invisible_fake' in 'A'
|
// ERROR: Cannot access 'p': it is 'invisible_fake' in 'A'
|
||||||
public enum class E(private val p: Int) {
|
public enum class E private constructor(private val p: Int) {
|
||||||
A(1) {
|
A(1) {
|
||||||
override fun bar() {
|
override fun bar() {
|
||||||
foo(this.p)
|
foo(this.p)
|
||||||
@@ -15,4 +15,4 @@ public enum class E(private val p: Int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
abstract fun bar()
|
abstract fun bar()
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user