I made a project using kotlin:
Group id-> com.programming.kotlin Artifact id->chapter01 Module name->chapter01 package->com.programming.kotlin.chapter01
I created a kotlin class called Program.kt
The problem is that when I try to create a new class (called Program2.kt) inside the package, and when I try to start it, I got this error:
class com.programming.kotlin.chapter01.Program2kt not found in module 'chapter01_main'
My question is: how to allow any new class other than the Main class to run inside intellij?
source share