[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:
committed by
Space Team
parent
4e85434536
commit
62d8d04b51
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user