[Compiler PSI] Make getContextReceivers default to preserve compatibility
^KT-51747 Fixed
This commit is contained in:
committed by
teamcity
parent
ccb6331e10
commit
2cfba51a29
@@ -20,6 +20,7 @@ import com.intellij.psi.PsiElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public interface KtCallableDeclaration extends KtNamedDeclaration, KtTypeParameterListOwner {
|
||||
@@ -33,7 +34,9 @@ public interface KtCallableDeclaration extends KtNamedDeclaration, KtTypeParamet
|
||||
KtTypeReference getReceiverTypeReference();
|
||||
|
||||
@NotNull
|
||||
List<KtContextReceiver> getContextReceivers();
|
||||
default List<KtContextReceiver> getContextReceivers() {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
KtTypeReference getTypeReference();
|
||||
|
||||
Reference in New Issue
Block a user