Rey (Kingg22)
12/03/2025, 1:02 AM@JvmMultifileClass annotation is used for when applied at the file level and combined with @JvmName. As far as I can tell, it only generates an additional file and doesn’t provide any real benefit. If I use only @JvmName, it does exactly what I expect—changing the name of the class that holds all the top-level declarations in the file. If I have a declared class, it stays outside that synthetic file-class anyway.
So what’s the purpose of the annotation? It means having multiple files with the same jvmName?Klitos Kyriacou
12/03/2025, 9:03 AMRey (Kingg22)
12/03/2025, 1:54 PMJvmMultifileClass would be unnecessary, thanks