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