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

Unified Diff: tests/language/unresolved_default_constructor_test.dart

Issue 526263002: Remove unneeded generation of default constructors from the dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added language test. Created 6 years, 3 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/backend_dart/dart_backend_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/unresolved_default_constructor_test.dart
diff --git a/tests/language/issue20476_test.dart b/tests/language/unresolved_default_constructor_test.dart
similarity index 55%
copy from tests/language/issue20476_test.dart
copy to tests/language/unresolved_default_constructor_test.dart
index 35890a672dc6476dd2b20129c02a0d757dbfb945..3adbdd935c9d0b3f7966d92f5216fd2d91fecbbf 100644
--- a/tests/language/issue20476_test.dart
+++ b/tests/language/unresolved_default_constructor_test.dart
@@ -2,23 +2,17 @@
// 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.
+// Test unresolved default constructor calls remain unresolved after dart2dart
+// translation.
+
import 'package:expect/expect.dart';
-foo() {
- try {
- try {
- return 1;
- } catch (e1) {
- } finally {
- return 3;
- }
- } catch (e2) {
- } finally {
- return 5;
- }
+class A {
+ A.named();
+ static method() {}
}
-
main() {
- Expect.equals(5, foo());
-}
+ A.method();
+ Expect.throws(() => new A()); /// 01: static type warning
+}
« no previous file with comments | « tests/compiler/dart2js/backend_dart/dart_backend_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698