title: Kotlin Android Studio/IntelliJ "Can be joined with assignment" Inspection Warning
body: <p>I'm new to Koltin and really loving it so far, but I've hit a snag. I'm sure I'm missing something extremely, extremely basic here, but nonetheless, I'm a loss, and I appreciate any help.</p>
  
  <p>I converted a simple java class to Kotlin using the Android Studio/IntelliJ command. After this conversion, I am getting an inspection warning that I'm unsure how to resolve. I had converted 15-20 classes (many of which were far more complicated) to Kotlin before this class, and have yet to see this warning.</p>
  
  <p><a href="https://i.stack.imgur.com/GIw0G.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GIw0G.png" alt="enter image description here"></a></p>
  
  <p>Again, I know this must be something really basic. But I poured through the Kotlin docs on variables and classes and couldn't find anything related to 'assignment' or initializing multiple variables at once. Maybe I'm not understanding the terms in the message? I've also Googled the exact message string (<code>"Can be joined with assignment"</code>) to no avail.</p>
  
  <p><strong>ImagePagerAdapter.kt</strong></p>
  
  <pre><code>abstract class ImagePagerAdapter(protected var context: Context) : PagerAdapter() {
      protected var inflater: LayoutInflater
      protected var images: List&lt;Uri&gt;
  
      interface ImageLoadingListener {
          fun onLoadingComplete()
          fun onLoadingStarted()
      }
  
      init {
          this.inflater = LayoutInflater.from(context)
          this.images = emptyList()
      }
  
      override fun getCount(): Int {
          return images.size
      }
  
      override fun isViewFromObject(view: View, `object`: Any): Boolean {
          return view === `object`
      }
  
      override fun destroyItem(container: ViewGroup, position: Int, `object`: Any) {
          container.removeView(`object` as View)
      }
  
      fun bindImages(images: List&lt;Uri&gt;) {
          this.images = images
      }
  }
  </code></pre>
  
  <p>Many thanks in advance!</p>