Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java

Issue 11196025: Add an error for obsolete raw strings (issue 4815) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/DartScanner.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java (revision 13746)
+++ compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java (working copy)
@@ -355,6 +355,12 @@
errEx(ParserErrorCode.DEPRECATED_USE_OF_FACTORY_KEYWORD, 1, 15, 7));
}
+ public void test_deprecatedRawString() {
+ parseExpectWarnings(
danrubel 2012/10/17 21:55:35 Perhaps it should be an error rather than a warnin
danrubel 2012/10/17 21:57:17 Sorry. It is an error. The "parseExpectWarning" th
+ "String s() { return @'s'; }",
+ errEx(ParserErrorCode.DEPRECATED_RAW_STRING, 1, 21, 1));
+ }
+
public void test_useExtendsInTypedef() {
parseExpectErrors(Joiner.on("\n").join(
"// filler filler filler filler filler filler filler filler filler filler",
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/DartScanner.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698