Replace with ordinary assignment: do not suggest when operator is augmented assignment operator function
#KT-34715 Fixed
This commit is contained in:
committed by
Yan Zhulanow
parent
55d55446c8
commit
73e319ca7a
@@ -18,6 +18,7 @@ org.jetbrains.kotlin.idea.intentions.ConvertPropertyInitializerToGetterIntention
|
||||
org.jetbrains.kotlin.idea.intentions.CreateKotlinSubClassIntention
|
||||
org.jetbrains.kotlin.idea.intentions.MoveMemberToCompanionObjectIntention
|
||||
org.jetbrains.kotlin.idea.intentions.MovePropertyToConstructorIntention
|
||||
org.jetbrains.kotlin.idea.intentions.ReplaceWithOrdinaryAssignmentIntention
|
||||
org.jetbrains.kotlin.idea.intentions.SpecifyTypeExplicitlyIntention
|
||||
org.jetbrains.kotlin.idea.quickfix.AddAnnotationTargetFix
|
||||
org.jetbrains.kotlin.idea.quickfix.AddExclExclCallFix
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Change 'list' to val" "false"
|
||||
// ACTION: Replace overloaded operator with function call
|
||||
// ACTION: Replace with 'plusAssign()' call
|
||||
// ACTION: Replace with ordinary assignment
|
||||
// ERROR: Assignment operators ambiguity: <br>public operator fun <T> Collection<Int>.plus(element: Int): List<Int> defined in kotlin.collections<br>public inline operator fun <T> MutableCollection<in Int>.plusAssign(element: Int): Unit defined in kotlin.collections
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
Reference in New Issue
Block a user