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

Unified Diff: dart/tests/language/src/SyntaxTest.dart

Issue 9349014: Fix NPE in parser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: changes Created 8 years, 10 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
« dart/frog/leg/scanner/parser.dart ('K') | « dart/frog/leg/scanner/parser.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/src/SyntaxTest.dart
diff --git a/dart/tests/language/src/SyntaxTest.dart b/dart/tests/language/src/SyntaxTest.dart
index 2a4a923c3cfcb4ae28d7c9fb7c74f7c85536efad..6d176c05386344fffb7caa4bd40aa8516e74ff82 100644
--- a/dart/tests/language/src/SyntaxTest.dart
+++ b/dart/tests/language/src/SyntaxTest.dart
@@ -229,8 +229,14 @@ main() {
print(null is void); /// 62: compile-time error
new B();
+ new Bad();
+
} catch (var ex) {
// Swallowing exceptions. Any error should be a compile-time error
// which kills the current isolate.
}
}
+
+class Bad {
+ factory Bad<Bad(String type) { return null; } /// 63: compile-time error
+}
« dart/frog/leg/scanner/parser.dart ('K') | « dart/frog/leg/scanner/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698