Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
6fc27c22f44d8051bf2e89f1657c0d9741c281c0
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
enum
/
enumEntryCannotHaveClassObject.kt
blob: d1add84ef55a86cad21fa18aee88f9ca9fc258f9 [
file
]
// FIR_IDENTICAL
enum
class
E
{
FIRST
,
SECOND
{
<!
WRONG_MODIFIER_CONTAINING_DECLARATION
!>
companion
<!>
object
{
fun foo
()
=
42
}
};
}
fun f
()
=
E
.
SECOND
.<!
UNRESOLVED_REFERENCE
!>
foo
<!>()