[PL][tests] Keep PL test data under "testData/klib/" dir
This commit is contained in:
committed by
Space Team
parent
9e3afe7a1f
commit
5c3e63e19a
@@ -0,0 +1,19 @@
|
||||
fun callRemovedOrNormalFunction(removed: Boolean): String = if (removed) removedFunction() else function()
|
||||
fun callRemovedOrNormalFunctionOnObject(removed: Boolean): String = if (removed) A().removedFunction() else A().function()
|
||||
|
||||
fun readRemovedOrNormalProperty(removed: Boolean): String = if (removed) removedProperty else property
|
||||
fun readRemovedOrNormalPropertyOnObject1(removed: Boolean): String = if (removed) A().removedProperty1 else A().property1
|
||||
fun readRemovedOrNormalPropertyOnObject2(removed: Boolean): String = if (removed) A().removedProperty2 else A().property2
|
||||
|
||||
@Suppress("NOTHING_TO_INLINE") inline fun callInlinedRemovedFunction() = removedFunction()
|
||||
@Suppress("NOTHING_TO_INLINE") inline fun readInlinedRemovedProperty() = removedProperty
|
||||
|
||||
class C2 : C() {
|
||||
override fun removedOpenFunction(): String = "O" // does not call super
|
||||
override val removedOpenProperty: String get() = "O" // does not call super
|
||||
}
|
||||
|
||||
class I2 : I {
|
||||
override fun removedOpenFunction(): String = "K" // does not call super
|
||||
override val removedOpenProperty: String get() = "K" // does not call super
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
STEP 0:
|
||||
dependencies: stdlib, lib1
|
||||
Reference in New Issue
Block a user