https://kotlinlang.org logo
Title
s

Shawn

01/16/2019, 9:39 PM
is the file called
Main.kt
?
t

Tristan Caron

01/16/2019, 9:48 PM
The file is named
MyClass.kt
s

Shawn

01/16/2019, 9:49 PM
Then I think the generated class might be
com.company.MyClassKt
instead
t

Tristan Caron

01/16/2019, 9:50 PM
I tried as well, but it's telling me no main found 🤔
s

Shawn

01/16/2019, 9:50 PM
Hm, I’m sure someone knows off the top of their head what the class would be called, but you can check using the Kotlin bytecode viewer, I’m pretty sure
t

Tristan Caron

01/16/2019, 9:52 PM
I looked at the classes generated in build, it's generating two files. One
MyClass
with only
MyClass
in. And another
MyClass.class
with the main function