Generate private constructors for enums in coverter
This commit is contained in:
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user