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

Unified Diff: tests/language/regress_23051_test.dart

Issue 1067653003: Handle unexpected tokens in modifier lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | « pkg/compiler/lib/src/scanner/parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/regress_23051_test.dart
diff --git a/tests/language/regress_23051_test.dart b/tests/language/regress_23051_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..6d466d3aff8a05353f8ece0cc2827e543904ac7e
--- /dev/null
+++ b/tests/language/regress_23051_test.dart
@@ -0,0 +1,15 @@
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// Regression test for issue 23051.
+
+main() {
+ new A(); /// 01: compile-time error
+}
+
+class A { /// 01: continued
+ // Note the trailing ' in the next line. /// 01: continued
+ get foo => bar();' /// 01: continued
+ /// 01: continued
+ String bar( /// 01: continued
« no previous file with comments | « pkg/compiler/lib/src/scanner/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698