Bhaskar Singh
12/18/2024, 8:27 PMinternal class ABC {
fun doSomething() = println("Doing something")
}
public class B() {
private val a = ABC()
}
But this isn’t:
internal class ABC
class ZYX : ABC
Joffrey
12/18/2024, 8:28 PMBhaskar Singh
12/18/2024, 8:31 PMDaniel Pitts
12/19/2024, 5:42 AMephemient
01/01/2025, 7:32 PMpublic interface Foo
private open class ABC : Foo
public class ZYX : ABC()
then externally
val foo: Foo = XYZ()
should this be legal or not? it can't be determined without the caller seeing ABC