Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode escapes in single line comments trigger error #3677

Closed
scabug opened this issue Jul 15, 2010 · 2 comments
Closed

Unicode escapes in single line comments trigger error #3677

scabug opened this issue Jul 15, 2010 · 2 comments

Comments

@scabug
Copy link

scabug commented Jul 15, 2010

hi,

i get the following error although the line is commented out:

Welcome to Scala version 2.8.0.final (Java HotSpot(TM) Client VM, Java 1.6.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

scala> // .replace( "\u000D", "" )
<console>:1: error: unclosed string literal
       // .replace( "\u000D", "" )
                               ^

expected behaviour: anything after double forward slash should be ignored by the compiler.

note that this only affects single line comments, as this works:

/* .replace( "\u000D", "" ) */
@scabug
Copy link
Author

scabug commented Jul 15, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3677?orig=1
Reporter: @Sciss

@scabug
Copy link
Author

scabug commented Jul 15, 2010

@retronym said:
Duplicate of wontfix #3220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant