/* This is a multi-line comment and it can span
* as many lines as you like
/*
This is a nested comment
*/
// Another nested comment
The comment continues here.
*/
fun main() {
println("Hello, World!")
}
The closing of the nested comment seems to end the outer comment.
Where it can be really confusing is if you include a /* in a comment as you may not realise that you are still in a comment.
Eg in the following code, the main function is commented out:
/*
* This function will work on the directory /home/user/*
*/
fun main() {
println("Hello, World!")
}
But it looks completely valid with this extension:
Consider the following code:
The closing of the nested comment seems to end the outer comment.
Where it can be really confusing is if you include a
/*
in a comment as you may not realise that you are still in a comment.Eg in the following code, the main function is commented out:
But it looks completely valid with this extension: