but when I add a Person class that belongs to a d...
# announcements
h
but when I add a Person class that belongs to a different file like this
Copy code
// HelloWorld.kt file
package samples

fun main(args: Array<String>) {
    val p = Parser()
    println(p.hello())

    val person = Person("me")
}

class Parser {
    fun hello(): String {
        return "Hello world"
    }
}

// Person.kt file
data class Person(val name: String)