'The usage of multiline comments in Kotlin

Is it just a luxury os it there a real usage of multiline comments in Kotlin?

/* This is a comment.

 /* And inside it
 is
 another comment.
 */

 Back to the first.
 */


Solution 1:[1]

I think you're asking about multi-line comments within multi-line comments, right?

Imagine you have a big function that has a multi-line comment inside it. Then you want to comment out this whole function. You can surround it with /* and */ and it will correctly comment the whole function even though there is a */ inside it. It can detect that it's an interior comment by its preceding */. This is why it's necessary for a multi-line comment to allow nested multi-line comments within itself.

Solution 2:[2]

On the right, open the Maven tab. Then click on the "Reload All Maven Projects" button at the top left of that dock. It should align the dependencies of your modules in Intellij with those in the maven pom(s).

When you create an IntelliJ run configuration, make sure you select the correct IntelliJ module.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tenfour04
Solution 2 Geoffrey De Smet