Minor: Fix tests
This commit is contained in:
+2
-2
@@ -136,9 +136,9 @@ private val OVERRIDE_RENDERER = DescriptorRenderer.withOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun PropertyDescriptor.wrap(): PropertyDescriptor {
|
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 isHeader() = false
|
||||||
override fun getModality() = Modality.OPEN
|
|
||||||
}
|
}
|
||||||
newDescriptor.setSingleOverridden(this)
|
newDescriptor.setSingleOverridden(this)
|
||||||
return newDescriptor
|
return newDescriptor
|
||||||
|
|||||||
+1
-1
@@ -11,4 +11,4 @@ fun main(args: Array<String>) {
|
|||||||
|
|
||||||
fun checkProperty(kClass: KClass<out String>) {
|
fun checkProperty(kClass: KClass<out String>) {
|
||||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user