Files
kotlin-fork/idea/resources-en/inspectionDescriptions/SuspiciousCollectionReassignment.html
T
Dmitry Gridin 0df5d5158d Add resources-en for idea
#KT-38297 Fixed
2020-05-19 16:22:06 +07:00

14 lines
306 B
HTML

<html>
<body>
This inspection reports augmented assignment on read-only <b>Collection</b> that creates a new <b>Collection</b> under the hood.
Example:
<br /><br />
<pre>
<b>var</b> list = listOf(1, 2, 3)
list <b>+=</b> 4 // A new list is created, better use mutableListOf instead
</pre>
</body>
</html>