[IR] update testdata: better support for IrCall
This commit is contained in:
committed by
teamcityserver
parent
ef2adfa835
commit
197f5ca885
+3
-3
@@ -23,15 +23,15 @@ operator fun String.getValue(receiver: Any?, p: Any): String {
|
||||
}
|
||||
|
||||
val testO: String /* by */
|
||||
field = provideDelegate($receiver = TODO("IrConstructorCall"), host = null, p = ::testO)
|
||||
field = TODO("IrConstructorCall").provideDelegate(host = null, p = ::testO)
|
||||
get(): String {
|
||||
return getValue($receiver = #testO$delegate, receiver = null, p = ::testO)
|
||||
return #testO$delegate.getValue(receiver = null, p = ::testO)
|
||||
}
|
||||
|
||||
val testK: String /* by */
|
||||
field = "K"
|
||||
get(): String {
|
||||
return getValue($receiver = #testK$delegate, receiver = null, p = ::testK)
|
||||
return #testK$delegate.getValue(receiver = null, p = ::testK)
|
||||
}
|
||||
|
||||
val testOK: String
|
||||
|
||||
+3
-3
@@ -24,16 +24,16 @@ operator fun String.getValue(receiver: Any?, p: Any): String {
|
||||
|
||||
fun box(): String {
|
||||
val testO: String
|
||||
val testO$delegate: String = provideDelegate($receiver = TODO("IrConstructorCall"), host = null, p = ::testO)
|
||||
val testO$delegate: String = TODO("IrConstructorCall").provideDelegate(host = null, p = ::testO)
|
||||
local get(): String {
|
||||
return getValue($receiver = testO$delegate, receiver = null, p = ::testO)
|
||||
return testO$delegate.getValue(receiver = null, p = ::testO)
|
||||
}
|
||||
|
||||
|
||||
val testK: String
|
||||
val testK$delegate: String = "K"
|
||||
local get(): String {
|
||||
return getValue($receiver = testK$delegate, receiver = null, p = ::testK)
|
||||
return testK$delegate.getValue(receiver = null, p = ::testK)
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -30,13 +30,13 @@ object Host {
|
||||
}
|
||||
|
||||
val String.plusK: String /* by */
|
||||
field = <this>.provideDelegate($receiver = "K", host = <this>, p = ::plusK)
|
||||
field = (<this>, "K").provideDelegate(host = <this>, p = ::plusK)
|
||||
get(): String {
|
||||
return #plusK$delegate.getValue(receiver = <this>, p = ::plusK)
|
||||
}
|
||||
|
||||
val ok: String
|
||||
field = <this>.<get-plusK>($receiver = "O")
|
||||
field = (<this>, "O").<get-plusK>()
|
||||
get
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user