title: Run single Kotlin file
body: <p>I have two Kotlin files in the same folder:</p>
  
  <p><a href="https://i.stack.imgur.com/SVnnF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SVnnF.png" alt="enter image description here"></a></p>
  
  <p>Both files have a trivial main method.
  I can right click on helloworld.kt file and select "Run..." from the menu.
  There's no such option for the circle.kt file though.</p>
  
  <p>This is my run/debug configuration for helloworld.kt:
  <a href="https://i.stack.imgur.com/ORKA1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ORKA1.png" alt="enter image description here"></a></p>
  
  <p>I tried to create an equivalent configuration for circle.kt, but it complains that the class com.example.kotlin.learning.CircleKt has no main method:</p>
  
  <p><a href="https://i.stack.imgur.com/Crhem.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Crhem.png" alt="enter image description here"></a></p>
  
  <p>There's actually no class in that file. But there isn't one in HelloWorld.kt as well, and that works.</p>
  
  <p>Here's the code for helloworld.kt:</p>
  
  <pre><code>package com.example.kotlin.learing
  
  
  fun main (argomenti: Array&lt;String&gt;) {
      println ("SUCA!")
      println (saluta ( "mario"))
  
      val vettore : Array&lt;String&gt; = arrayOf("pippo", "pluto", "paperino")
      println(vettore [0])
  }
  
  fun saluta (chi : String) = ( chi + " antani" )
  </code></pre>
  
  <p>here's circle.kt:</p>
  
  <pre><code>package com.example.kotlin.learing
  
  
  
  fun main() = println("pippuz!")
  </code></pre>
  
  <p>I realize I am missing something deep here. What is that?
  Thanks</p>