in the compile test framework APIs, is there a way...
# compiler
z
in the compile test framework APIs, is there a way to replicate gradle api/impl behavior with
// MODULE
directives?
d
Dependencies specified after module name (
// MODULE: b(a)
) are always not transitive. So they are like
implementation
but even without runtime propagation. If some dependency in your test must be transitive (
api
-like), you need to explicitly pass it to all required modules
Copy code
// MODULE: a
class Some

// MODULE: b(a)
fun foo(x: Some) {}

// MODULE: c(b, a)
fun test(x: Some) {
    foo(x)
}
/*
 * If it would be // MODULE: c(b), then `Some`
 * will be unresolved
 */
👍 1