Strange behavior of plot

I noticed a very strange behavior of comment strings followed by the semi-colon. Consider the simple program:

using Plots
plot(1:10, 1:10, c=:blue)
#

This will create a plot as expected. However, if I change the last line and create the following program:

using Plots
plot(1:10, 1:10, c=:blue)
# ;

the plot does not appear. So I would like to understand why a line that starts with the comment symbol # becomes a non-comment when the line ends in a semi-colon. I also wonder what other code constructs are affected by this. It is strange. Thank you for any help.

Linking related post.

Thanks. The link indicates a general behavior. The commenters do not admit it is a bug. It is hard to believe that this was not fixed. In my opinion, this behavior should be explained in the Julia documentation and justified if indeed it is not a bug! Thank you.

it’s fixed:

2 Likes