Edoardo Luppi
08/28/2023, 3:18 PMprivate val configRegex = Regex("^Config=(.+)$", RegexOption.MULTILINE)
internal class ServerExtensions {
...
}
Is it possible to generate a single .class
file?
I recall @mbonnin suggested JvmMultifileClass
but it seems it's not applicable herembonnin
08/28/2023, 3:19 PMval
and another one for ServerExtensions
mbonnin
08/28/2023, 3:19 PMEdoardo Luppi
08/28/2023, 3:20 PMServerExtensions
.
Not mandatory, but was just curious if it's feasiblembonnin
08/28/2023, 3:21 PMval
inside your ServerExtensions
mbonnin
08/28/2023, 3:22 PMmbonnin
08/28/2023, 3:22 PMEdoardo Luppi
08/28/2023, 3:23 PMprivate companion object {
private val configRegex = Regex("^Config=(.+)$", RegexOption.MULTILINE)
}
The funny thing is now configRegex
is a static field of ServerExtensions
, and I got an instantiation of an empty Companion
lolmbonnin
08/28/2023, 3:24 PM@JvmStatic
if you really want to but...🤷Edoardo Luppi
08/28/2023, 3:26 PMmbonnin
08/28/2023, 3:29 PMEdoardo Luppi
08/28/2023, 3:29 PM