therealbluepandabear
02/25/2022, 5:56 AMinternal
? Really confused as to when I'd ever need to use this, especially since most of my projects are just one module.Fleshgrinder
02/25/2022, 6:57 AM@JvmSynthetic
and hide it that way).
It has no use if you only create applications.Joffrey
02/25/2022, 9:10 AMIt has no use if you only create applicationsJust a detail, but this is only true for single-module applications. If your application is a multi-module project, some modules may behave like libraries and benefit from
internal
toochristophsturm
02/25/2022, 12:47 PMFleshgrinder
02/25/2022, 12:55 PMLeoColman
02/25/2022, 6:25 PMFleshgrinder
02/25/2022, 6:29 PMclass Foo {
friend com.example.bar.*
friend org.example.FooBar
}
LeoColman
02/26/2022, 10:59 AMpackage my.pkg
class Foo {
friend my.pkg.FooTest
private fun myPrivateMethod() {} // Accessible in FooTest?
}
Fleshgrinder
02/26/2022, 1:29 PMchristophsturm
02/27/2022, 1:00 PM