[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
This commit is contained in:
Anastasia.Nekrasova
2023-07-01 17:51:53 +03:00
committed by Space Team
parent 4e85434536
commit 62d8d04b51
7 changed files with 60 additions and 0 deletions
@@ -0,0 +1,15 @@
enum class B2() {
A {
override val foo: String
get() = "foo1"
override val bar: String
get() = "bar1"
};
open val foo
<!DECLARATION_CANT_BE_INLINED!>inline<!> get() = "foo"
open <!DECLARATION_CANT_BE_INLINED!>inline<!> val bar
get() = "bar1"
}
@@ -0,0 +1,15 @@
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"
}