title: Why happens this weird compiler behaviour in Android Studio 3.6?
body: <p>I've updated for <em>Android Studio 3.6</em> today (<code>#AI-192.7142.36.36.6200805</code>, built on February 12, 2020). I use <em>Kotlin</em> (my version - <code>1.3.61</code> - is updated). My <em>Gradle</em> version is <code>5.6.4</code>(the last one).</p>
  
  <p>A very strange stuff is happening for me. </p>
  
  <p>The first problem is that now I need to press save icon (<code>^s</code>) before running. Until <em>Android 3.5</em> was automatic. But it's Ok, it is a matter of getting used to it. </p>
  
  <p>The second problem is worst. I have a <em>typealias</em> that was <em>ArrayList</em> and I needed change to a simple <em>Array</em>, so I've changed the previous code <code>typealias Duo = ArrayList&lt;Double&gt;</code>  for <code>typealias Duo = Array&lt;Double&gt;</code>. </p>
  
  <p>It's a big project, and I have in some module a small piece of code, that can be shown as</p>
  
  <pre><code>var gData = ArrayList&lt;Duo&gt;()    
  gData.add(arrayOf(5.0, 1.0))
  </code></pre>
  
  <p>after I've saved the files (<code>^s</code>) and run. </p>
  
  <p>Now appears the below error message pointing to the second line, even if the editor don't show a red mark in the code: </p>
  
  <pre><code>Type inference failed. Expected type mismatch: inferred type is Array&lt;Double&gt;
   but Duo /* = ArrayList&lt;Double&gt; */ was expected
  </code></pre>
  
  <p>I have no clue what is happening.... I've tried to <code>restart</code> and <code>restart and invalidate caches</code>, with no success. The same messages. I use  <code>find in path</code> (<code>^+f</code>) to check duplicate declarations of <code>duo</code>. Nope. </p>
  
  <p>When I've tried the below toy code in <a href="https://play.kotlinlang.org/" rel="nofollow noreferrer">Kotlin Playground</a>, it's OK. No error. </p>
  
  <pre><code>typealias Duo = Array&lt;Double&gt;
  fun main() {
      var gData = ArrayList&lt;Duo&gt;()    
      gData.add(arrayOf(5.0, 1.0))
      println(gData[0][0])
  }
  </code></pre>
  
  <p>I'm lost! </p>
  
  <p><strong>UPDATE</strong> </p>
  
  <p>It should be a very serious bug in Android Studio 3.6. 
  I've solved the problem, but it doesn't make any sense. I simply have replaced all 13 occurrences of <code>duo</code> with <code>dux</code> and the problem is over! (<code>Ctrl + Shift + R</code> - <code>Replace in Path</code>) After, I've switched back for <code>duo</code> (13 occurences) and the problem didn't return, but the mystery is on the air. </p>