[K2] OPT_IN_USAGE_ERROR is absent when calling the enum primary constructor
^KT-63459
This commit is contained in:
committed by
Space Team
parent
c6d391c632
commit
97ef2de6e3
+5
@@ -15,6 +15,11 @@ class Other(val x: Int) {
|
||||
constructor(y: Long, some: Some? = null): this(some?.x ?: y.toInt())
|
||||
}
|
||||
|
||||
enum class Enumeration @Marker constructor() {
|
||||
ENTRY<!OPT_IN_USAGE_ERROR!><!>(),
|
||||
ENTRY2;
|
||||
}
|
||||
|
||||
fun foo(some: <!OPT_IN_USAGE_ERROR!>Some<!>? = null) {}
|
||||
|
||||
fun test() {
|
||||
|
||||
Reference in New Issue
Block a user