Add target FIELD for SinceKotlin, annotate CallableReference.receiver/NO_RECEIVER

This commit is contained in:
Alexander Udalov
2017-02-09 16:11:06 +03:00
parent 20d856fa77
commit 6793861fd4
6 changed files with 8 additions and 5 deletions
@@ -40,7 +40,10 @@ public abstract class CallableReference implements KCallable {
// objects are written to it. The latter is guaranteed because both KFunctionImpl and KPropertyImpl have at least one final field.
private KCallable reflected;
@SinceKotlin(version = "1.1")
protected final Object receiver;
@SinceKotlin(version = "1.1")
public static final Object NO_RECEIVER = new Object();
public CallableReference() {