Forbid provideDelegate, setValue and getValue suspend operators
#KT-24866 Fixed
This commit is contained in:
+2
-1
@@ -26,7 +26,8 @@ import org.jetbrains.kotlin.util.OperatorNameConventions
|
||||
object SuspendOperatorsCheckers : DeclarationChecker {
|
||||
private val UNSUPPORTED_OPERATOR_NAMES = setOf(
|
||||
OperatorNameConventions.CONTAINS,
|
||||
OperatorNameConventions.GET, OperatorNameConventions.SET
|
||||
OperatorNameConventions.GET, OperatorNameConventions.SET,
|
||||
OperatorNameConventions.PROVIDE_DELEGATE, OperatorNameConventions.GET_VALUE, OperatorNameConventions.SET_VALUE
|
||||
)
|
||||
|
||||
override fun check(declaration: KtDeclaration, descriptor: DeclarationDescriptor, context: DeclarationCheckerContext) {
|
||||
|
||||
Reference in New Issue
Block a user