Skip to content

Commit

Permalink
Deprecation: Escape string literals (deprecated -> error)
Browse files Browse the repository at this point in the history
This has been deprecated since 2.026 (35 months)
  • Loading branch information
yebblies committed Oct 28, 2012
1 parent 28c4445 commit f1b9ca8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion src/lexer.c
Expand Up @@ -578,7 +578,7 @@ void Lexer::scan(Token *t)
t->postfix = 0;
t->value = TOKstring;
#if DMDV2
deprecation("Escape String literal %.*s is deprecated, use double quoted string literal \"%.*s\" instead", p - pstart, pstart, p - pstart, pstart);
error("Escape String literal %.*s is deprecated, use double quoted string literal \"%.*s\" instead", p - pstart, pstart, p - pstart, pstart);
#endif
return;
}
Expand Down
12 changes: 0 additions & 12 deletions test/runnable/deprecate1.d
Expand Up @@ -55,17 +55,6 @@ void test10()
assert(b == 668);
}

/**************************************
backslash literals
**************************************/

// from lexer.d
void lexerTest7()
{
auto str = \xDB;
assert(str.length == 1);
}

/**************************************
typedef
**************************************/
Expand Down Expand Up @@ -1268,7 +1257,6 @@ int main()
{
test2();
test5();
lexerTest7();
test10();
test19();
test33();
Expand Down

0 comments on commit f1b9ca8

Please sign in to comment.