K1: report warning for inline virtual member in enum #KT-53148 Fixed

Related to KT-34372
This commit is contained in:
Mikhail Glukhikh
2022-07-12 11:34:42 +02:00
committed by Space
parent f509a756fd
commit 475e40b3e4
10 changed files with 75 additions and 2 deletions
@@ -0,0 +1,12 @@
enum class Some {
A {
override fun foo(s: () -> String): String {
return s() + s()
}
};
//SHOULD BE ERROR REPORTED
open <!DECLARATION_CANT_BE_INLINED_WARNING!>inline<!> fun foo(s: () -> String): String {
return s()
}
}