title: Android Studio & Kotlin: unresolved reference:context
body: <p>I've tried hundreds of ways to resolve this reference problem:</p>
  
  <pre><code>class MainActivity : AppCompatActivity() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
          setSupportActionBar(toolbar)
  
          val dm = DataManager()
          val adapterCourses = ArrayAdapter&lt;CourseInfo&gt;(context:  this,
                      android.R.layout)
  </code></pre>
  
  <p>but in <code>ArrayAdapter&lt;CourseInfo&gt;(context: this, android.R.layout)</code> I get <strong>unresolved reference: context</strong> and I have no idea why.</p>
  
  <p>Android Studio version: 3.3.2
  Kotlin version: 1.3.21</p>
  
  <p>Could anyone help me?</p>