Only private constructors for sealed / enum classes #KT-12377 Fixed
Also #KT-8497 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
enum class E <!NON_PRIVATE_CONSTRUCTOR_IN_ENUM!>public<!> constructor(val x: Int) {
|
||||
FIRST();
|
||||
|
||||
<!NON_PRIVATE_CONSTRUCTOR_IN_ENUM!>internal<!> constructor(): this(42)
|
||||
|
||||
constructor(y: Int, z: Int): this(y + z)
|
||||
}
|
||||
Reference in New Issue
Block a user