KT-57491 Prefix context receivers with $context_receiver_
This commit is contained in:
committed by
Space Team
parent
f3592088fe
commit
0e6da53af8
+5
-5
@@ -1,14 +1,14 @@
|
||||
fun foo(_context_receiver_0: Int, _context_receiver_1: String): Int {
|
||||
return _context_receiver_0.plus(other = 42)
|
||||
fun foo($context_receiver_0: Int, $context_receiver_1: String): Int {
|
||||
return $context_receiver_0.plus(other = 42)
|
||||
}
|
||||
|
||||
fun foo(_context_receiver_0: Int): Int {
|
||||
return _context_receiver_0.plus(other = 42)
|
||||
fun foo($context_receiver_0: Int): Int {
|
||||
return $context_receiver_0.plus(other = 42)
|
||||
}
|
||||
|
||||
fun test() {
|
||||
with<Int, Int>(receiver = 42, block = local fun Int.<anonymous>(): Int {
|
||||
return foo(_context_receiver_0 = $this$with)
|
||||
return foo($context_receiver_0 = $this$with)
|
||||
}
|
||||
) /*~> Unit */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user