Visual Studio does not flag unterminated string constant in VB.Net

Posted by JoelFan on Stack Overflow See other posts from Stack Overflow or by JoelFan
Published on 2010-05-25T16:17:23Z Indexed on 2010/05/25 16:21 UTC
Read the original article Hit count: 441

Filed under:
|
|

I noticed that if I leave off the terminating double quote for a string constant in Visual Studio 2010, there is no error or even a warning, i.e.

Dim foo as String = "hi

However, the continuous integration tool we are using flags an error:

error BC30648: String constants must end with a double quote.

What's going on here? Is there some language rule in VB.NET that makes a terminating double quote optional "sometimes"? Is there some setting in Visual Studio that will make it flag this as an error?

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about visual-studio