Files
kotlin-fork/compiler/testData/diagnostics/tests/inline/virtualMemberInEnum.kt
T
2022-07-14 07:59:33 +00:00

13 lines
276 B
Kotlin
Vendored

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()
}
}