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

Unified Diff: tests/compiler/dart2js_extra/regress/4562_test.dart

Issue 10855220: Fix issue 4562 by giving a proper error message rather than crashing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « tests/compiler/dart2js_extra/dart2js_extra.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/regress/4562_test.dart
diff --git a/tests/language/bind_test.dart b/tests/compiler/dart2js_extra/regress/4562_test.dart
similarity index 59%
copy from tests/language/bind_test.dart
copy to tests/compiler/dart2js_extra/regress/4562_test.dart
index e73f68e5514cb26527208fa3b2d1df8f3a145fe4..13a30edc8c3407cf7ed64d28819af3d7d6149172 100644
--- a/tests/language/bind_test.dart
+++ b/tests/compiler/dart2js_extra/regress/4562_test.dart
@@ -2,13 +2,15 @@
// 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.
-class Bound {
- run() {
- return 42;
- }
+void main() {
+ var foo = new Foo();
+ var bar = new Bar(); /// 01: compile-time error
}
-void main() {
- var runner = new Bound().run;
- Expect.equals(42, runner());
+class Foo {
+ factory Foo() => null;
+}
+
+class Bar extends Foo {
+ Bar(); /// 01: continued
}
« no previous file with comments | « tests/compiler/dart2js_extra/dart2js_extra.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698