Mikhail
07/15/2022, 1:24 PMJoffrey
07/15/2022, 1:26 PMMikhail
07/15/2022, 1:27 PMpublic
declarations in test
module are already encapsulated, simply because they are in testsJoffrey
07/15/2022, 1:27 PMinternal
Mikhail
07/15/2022, 1:28 PMMikhail
07/15/2022, 1:28 PMpublic
declaration in tests as internal
?
I think I have an idea for a compiler pluginMikhail
07/15/2022, 1:29 PMinternal
Joffrey
07/15/2022, 1:38 PMinternal
declarations in tests when necessary, as long as everything behave the same. But I can see why people would find some benefits in having this implicit internal
by default for testsdmitriy.novozhilov
07/15/2022, 1:52 PMinternal
visibilityMikhail
07/15/2022, 1:53 PMMikhail
07/15/2022, 2:11 PMtest
module for Explicit API Kotlin compiler feature? 😁Mikhail
07/15/2022, 2:22 PM...
freeCompilerArgs = listOf("...", "-Xexplicit-api=strict")
...
Klitos Kyriacou
07/17/2022, 4:03 PMMikhail
07/17/2022, 4:04 PMdmitriy.novozhilov
07/18/2022, 7:15 AMDoes the Kotlin compiler even know that it's compiling a test module?No, it doesn't
Maybe the Kotlin plugin runs compilation for each module separatelyYes it is. There is no difference for compiler between main and test modules The only difference on the build system side, which marks main module as friend for test one, which allows to use
internal
declarations from main in test