I made a project using kotlin:
Group id-> com.programming.kotlin
Artifact id->chapter01
Module name->chapter01
package->com.programming.kotlin.chapter01
I made a kotlin class called Program.kt
The problem is: when i try to make a new class(called Program2.kt) inside package and when i try to run 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 Main class to run inside intellij ?
package com.programming.kotlin.chapter01
intoProgram2.kt
?