[K2] OPT_IN_USAGE_ERROR is absent when calling the enum primary constructor

^KT-63459
This commit is contained in:
Anastasia.Nekrasova
2023-11-22 19:41:22 +02:00
committed by Space Team
parent c6d391c632
commit 97ef2de6e3
4 changed files with 58 additions and 19 deletions
@@ -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() {