FIR: Fix wrong ACCIDENTAL_OVERRIDE on fake override property with JvmName
This commit is contained in:
committed by
teamcityserver
parent
6f55d23bab
commit
a7859e0332
@@ -0,0 +1,23 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
abstract class Base {
|
||||
protected abstract fun getChart(context: CharSequence): String
|
||||
|
||||
@get:JvmName("getChartHelper")
|
||||
public val CharSequence.chart get() = getChart(this)
|
||||
}
|
||||
|
||||
abstract class Derived1 : Base()
|
||||
|
||||
class Derived2 : Derived1() {
|
||||
override fun getChart(context: CharSequence): String {
|
||||
return context.toString()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return with(Derived2()) {
|
||||
"OK".chart
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user