Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/virtualValInEnum.kt
T
Anastasia.Nekrasova 62d8d04b51 [Test] Add a test covering missed error for virtual inline vals in enum classes
Addition to inline functions that are already present in tests.

^KT-34372
2023-07-01 15:10:05 +00:00

16 lines
331 B
Kotlin
Vendored

enum class B2() {
A {
override val foo: String
get() = "foo1"
override val bar: String
get() = "bar1"
};
open val foo
<!DECLARATION_CANT_BE_INLINED_WARNING!>inline<!> get() = "foo"
open <!DECLARATION_CANT_BE_INLINED_WARNING!>inline<!> val bar
get() = "bar1"
}