472ec72eb9
1. Move tests to their own module 2. Avoid sharing the 'tinyApp' project between tests 3. Clean up option directive handling
36 lines
789 B
Kotlin
Vendored
36 lines
789 B
Kotlin
Vendored
// FILE: stopInInlineUnderSamConversion.kt
|
|
package stopInInlineUnderSamConversion
|
|
|
|
import forTests.SamConversion
|
|
|
|
fun main(args: Array<String>) {
|
|
val a = 1
|
|
|
|
SamConversion.doAction({
|
|
inlineCall {
|
|
{
|
|
//Breakpoint!
|
|
foo(a)
|
|
}()
|
|
}
|
|
})
|
|
}
|
|
|
|
fun foo(a: Any) {}
|
|
|
|
inline fun inlineCall(f: () -> Unit) {
|
|
f()
|
|
}
|
|
|
|
// FILE: forTests/SamConversion.java
|
|
package forTests;
|
|
|
|
public class SamConversion {
|
|
public interface Runnable {
|
|
public abstract void run();
|
|
}
|
|
|
|
public static void doAction(Runnable runnable) {
|
|
runnable.run();
|
|
}
|
|
} |