554e94a322
Unfortunately, neither descriptors nor Lazy IR have enough information to correctly deduce a enum's modality as psi2ir does, so to avoid the RTTI generator generating different vtables in different setups (whether a klib is cached or not), conservatively consider all enums non-final.
10 lines
202 B
Kotlin
10 lines
202 B
Kotlin
/*
|
|
* Copyright 2010-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
|
* that can be found in the LICENSE file.
|
|
*/
|
|
|
|
enum class Foo {
|
|
Z;
|
|
|
|
open fun bar() = 42
|
|
} |