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

Unified Diff: dart/tests/language/syntax_test.dart

Issue 11464026: Diagnose illegal lvalues better. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove dead code Created 8 years 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 | « dart/sdk/lib/_internal/compiler/implementation/scanner/listener.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/syntax_test.dart
diff --git a/dart/tests/language/syntax_test.dart b/dart/tests/language/syntax_test.dart
index 6c6821c2d56aa170e8470519c19b5613c21e39ac..462bdbd4f210e61cbf94f6af287079686ff7d43d 100644
--- a/dart/tests/language/syntax_test.dart
+++ b/dart/tests/language/syntax_test.dart
@@ -233,6 +233,10 @@ main() {
new Bad();
+ 1 + 2 = 1; /// 63: compile-time error
+ new SyntaxTest() = 1; /// 64: compile-time error
+ futureOf(null) = 1; /// 65: compile-time error
+
} catch (ex) {
// Swallowing exceptions. Any error should be a compile-time error
// which kills the current isolate.
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/scanner/listener.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698