472ec72eb9
1. Move tests to their own module 2. Avoid sharing the 'tinyApp' project between tests 3. Clean up option directive handling
26 lines
487 B
Kotlin
Vendored
26 lines
487 B
Kotlin
Vendored
// FILE: kotlinSamFunction.kt
|
|
package kotlinSamFunction
|
|
|
|
import forTests.MyJavaClass
|
|
|
|
class KotlinSubclass : MyJavaClass() {
|
|
override fun other(runnable: Runnable) {
|
|
super.other(runnable)
|
|
}
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
val klass = KotlinSubclass()
|
|
//Breakpoint!
|
|
klass.other { /* do nothing*/ }
|
|
}
|
|
|
|
// FILE: forTests/MyJavaClass.java
|
|
package forTests;
|
|
|
|
public class MyJavaClass {
|
|
public void other(Runnable runnable) {
|
|
runnable.run();
|
|
}
|
|
}
|