Files
kotlin-fork/idea/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptySetOf.kt.after
T

12 lines
271 B
Plaintext
Vendored

// "Replace with assignment" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
// WITH_RUNTIME
fun test(otherList: Set<Int>) {
var list = setOf<Int>()
foo()
bar()
list = otherList
}
fun foo() {}
fun bar() {}