It is possible to manually write the receiver parameter of an instance method as below.
class A {
public void test(A this) { }
}
Is there any purpose to write as above? Then, I tried to use it in the following way.
A a1 = new A();
A a2 = new A();
a1.test(a2);
Obviously the above is a compilation error. Why allow the user to write such syntax when it has no practical use. Is there any purpose for manually writing it?