Minor: Fix tests

This commit is contained in:
Alexey Sedunov
2017-07-18 20:06:16 +03:00
parent f2b5f37b22
commit eda747c0bf
2 changed files with 3 additions and 3 deletions
@@ -136,9 +136,9 @@ private val OVERRIDE_RENDERER = DescriptorRenderer.withOptions {
}
private fun PropertyDescriptor.wrap(): PropertyDescriptor {
val newDescriptor = object : PropertyDescriptor by this {
val delegate = copy(containingDeclaration, Modality.OPEN, visibility, kind, true) as PropertyDescriptor
val newDescriptor = object : PropertyDescriptor by delegate {
override fun isHeader() = false
override fun getModality() = Modality.OPEN
}
newDescriptor.setSingleOverridden(this)
return newDescriptor
@@ -11,4 +11,4 @@ fun main(args: Array<String>) {
fun checkProperty(kClass: KClass<out String>) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}