-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Remove octal escape literals #11140
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
Remove octal escape literals #11140
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
-- Error: tests/neg/t7292-removal.scala:2:14 --------------------------------------------------------------------------- | ||
2 | val chr1 = '\0' // error | ||
| ^ | ||
| octal escape literals are unsupported: use \u0000 instead | ||
-- Error: tests/neg/t7292-removal.scala:3:17 --------------------------------------------------------------------------- | ||
3 | val str1 = "abc\123456" // error | ||
| ^ | ||
| octal escape literals are unsupported: use \u0053 instead | ||
-- Error: tests/neg/t7292-removal.scala:4:12 --------------------------------------------------------------------------- | ||
4 | val lf = '\012' // error | ||
| ^ | ||
| octal escape literals are unsupported: use \n instead |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
object OctalEscapes { | ||
val chr1 = '\0' // error | ||
val str1 = "abc\123456" // error | ||
val lf = '\012' // error | ||
} | ||
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
RichCharTest1: | ||
true | ||
true | ||
true | ||
true | ||
|
||
RichIntTest: | ||
10 | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from
untried