KT-57491 Prefix context receivers with $context_receiver_

This commit is contained in:
Pavel Mikhailovskii
2023-03-23 16:23:09 +00:00
committed by Space Team
parent f3592088fe
commit 0e6da53af8
82 changed files with 920 additions and 919 deletions
@@ -1,8 +1,8 @@
class A<T : Any?> {
private /* final field */ val contextReceiverField0: T
constructor(_context_receiver_0: T) /* primary */ {
constructor($context_receiver_0: T) /* primary */ {
super/*Any*/()
<this>.#contextReceiverField0 = _context_receiver_0
<this>.#contextReceiverField0 = $context_receiver_0
/* <init>() */
}
@@ -11,9 +11,9 @@ class A<T : Any?> {
class B<P : Any?> {
private /* final field */ val contextReceiverField0: Collection<P>
constructor(_context_receiver_0: Collection<P>) /* primary */ {
constructor($context_receiver_0: Collection<P>) /* primary */ {
super/*Any*/()
<this>.#contextReceiverField0 = _context_receiver_0
<this>.#contextReceiverField0 = $context_receiver_0
/* <init>() */
}
@@ -21,9 +21,9 @@ class B<P : Any?> {
}
fun Int.foo() {
A<Int>(_context_receiver_0 = <this>) /*~> Unit */
A<Int>($context_receiver_0 = <this>) /*~> Unit */
}
fun Collection<Int>.bar() {
B<Int>(_context_receiver_0 = <this>) /*~> Unit */
B<Int>($context_receiver_0 = <this>) /*~> Unit */
}