Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
4f8dad3e4ba00e23b4182ef4c50194b20bd43c8f
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
declarationChecks
/
kt1193.kt
blob: b1f476f251bda6ae06436b5387e367f86c8d04be [
file
]
// !DIAGNOSTICS: -UNUSED_PARAMETER
//KT-1193 Check enum entry supertype / initialization
package
kt1193
enum
class
MyEnum
(
val i
:
Int
)
{
A
(
12
),
<!
ENUM_ENTRY_SHOULD_BE_INITIALIZED
!>
B
<!>
//no error
}
open
class
A
(
x
:
Int
=
1
)
val x
:
MyEnum
=
MyEnum
.
A