Skip to content

Commit 06f7a3d

Browse files
committed
[Compiler PSI] Make getContextReceivers default to preserve compatibility
^KT-51747 Fixed
1 parent 68e86c5 commit 06f7a3d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/psi/src/org/jetbrains/kotlin/psi/KtCallableDeclaration.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.jetbrains.annotations.NotNull;
2121
import org.jetbrains.annotations.Nullable;
2222

23+
import java.util.Collections;
2324
import java.util.List;
2425

2526
public interface KtCallableDeclaration extends KtNamedDeclaration, KtTypeParameterListOwner {
@@ -33,7 +34,9 @@ public interface KtCallableDeclaration extends KtNamedDeclaration, KtTypeParamet
3334
KtTypeReference getReceiverTypeReference();
3435

3536
@NotNull
36-
List<KtContextReceiver> getContextReceivers();
37+
default List<KtContextReceiver> getContextReceivers() {
38+
return Collections.emptyList();
39+
}
3740

3841
@Nullable
3942
KtTypeReference getTypeReference();

0 commit comments

Comments
 (0)