<Can a main file method reference another main fil...
# forum
r
Can a main file method reference another main file method in the same package? I have two files, a main file and a test file. Each file just has a main method in it, no actual class definition. Is it possible to reference the main method from the main file in the test main method? src/main/kotlin/com/skater901/MyApp.kt package com.skater901 fun main(args: Array) { // run my app } src/test/kotlin/com/skater901/RunLocal.kt package com.skater901 fun main(args: Array) { // setup code for local debugging com.skater901.MainKt.main(args)