JS: fix callable reference with implicit extension receiver (KT-22638 fixed)
This commit is contained in:
@@ -53,5 +53,33 @@ fun box(): String {
|
||||
val b = A().B().test()
|
||||
if (b != "A.amf,A.ef,A.amp,A.ep,B.mf,B.mp,B.ef,B.ep,") return "Fail $b"
|
||||
|
||||
result = ""
|
||||
with(A()) {
|
||||
(::memberFunction)()
|
||||
(::aExtensionFunction)()
|
||||
|
||||
(::memberProperty)()
|
||||
(::aExtensionProperty)()
|
||||
}
|
||||
if (result != "A.mf,A.ef,A.mp,A.ep,") return "Fail $result"
|
||||
|
||||
result = ""
|
||||
with(A()) {
|
||||
with(B()) {
|
||||
(::aMemberFunction)()
|
||||
(::aExtensionFunction)()
|
||||
|
||||
(::aMemberProperty)()
|
||||
(::aExtensionProperty)()
|
||||
|
||||
(::memberFunction)()
|
||||
(::memberProperty)()
|
||||
|
||||
(::bExtensionFunction)()
|
||||
(::bExtensionProperty)()
|
||||
}
|
||||
}
|
||||
if (result != "A.amf,A.ef,A.amp,A.ep,B.mf,B.mp,B.ef,B.ep,") return "Fail $result"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// SKIP_SOURCEMAP_REMAPPING
|
||||
|
||||
fun box(): String {
|
||||
var state = 0
|
||||
val name = (state++)::toString.name
|
||||
|
||||
Reference in New Issue
Block a user