Files
Mikhael Bogdanov a020170a92 Report missed INLINE_FROM_HIGHER_PLATFORM diagnostic for derived class
Inline function descriptor in derived class represented as FAKE_OVERRIDE.
 So we should find it in base class declaration
 (not interface cause inline function can't be virtual, but always final)
 and then check class version.

 #KT-29402 Fixed
2019-02-19 10:51:36 +01:00

38 lines
700 B
Kotlin
Vendored

// JVM_TARGET: 1.8
package a
inline fun inlineFun(p: () -> Unit) {
p()
}
var inlineGetter: Int
inline get() = 1
set(varue) { varue.hashCode() }
var inlineSetter: Int
get() = 1
inline set(varue) { varue.hashCode() }
var allInline: Int
inline get() = 1
inline set(varue) { varue.hashCode() }
open class Base {
inline fun inlineFunBase(p: () -> Unit) {
p()
}
var inlineGetterBase: Int
inline get() = 1
set(varue) { varue.hashCode() }
var inlineSetterBase: Int
get() = 1
inline set(varue) { varue.hashCode() }
var allInlineBase: Int
inline get() = 1
inline set(varue) { varue.hashCode() }
}